title: How to check if a script or css file was served from browser cache or from the remote server
body: <p>Is there a reliable to way to check if a particular asset was loaded from cache or from the network?</p>
  
  <p>The only way I found so far is to set a threshold like 10ms and check the loading duration, however it seems that it might not be always accurate.</p>
  
  <p>UPDATE</p>
  
  <p>I need to do that for monitoring/debugging purposes and possible optimizations depending on what I see in the metrics</p>