in google chrome, i go to an asp.net web site url after enabling the DOM inspector (F12). If I select the Network tab, I can see the resources requested along with their status, timeline etc. On subsequent requests, I see that the status for some items say '304 Not modified' and some say '(from cache)', including .js,.css and image files.
I was thinking that all css and images are cached, atleast if I request the page immediately. Are these two status messages the same, can someone explain it?
I would guess that the distinction is that a 304 indicates the browser sent a request and the server indicated the resource hadn't changed, whereas the from cache status may indicate that Chrome didn't even send a request--the browser knew to use the cache without ever contacting the server.
This could be verified with a tool like Fiddler to see whether from cache resources are ever requested.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With