Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there way to find out how long a webserver set the expiration time (Max-time) for image files when you browse a site?

share|improve this question

1 Answer 1

Yes, you need to look for a Headers that server sends in you response to image request.

Usually you can see, something like this in headers:

Last-Modified: Mon, 12 Nov 2012 13:05:04 GMT

With no specific cache control headers. Which gives you browser opportunity to make subsequent requests with header:

If-Modified-Since: Mon, 12 Nov 2012 13:05:04 GMT

and keep file in cache as long as forever, while server keeps returning 304 Not Modified.

To watch the headers you need any kind of Web-debugger, which can be a browser extension (like Firebug in Firefox) or a separate application like Fiddler.

share|improve this answer
    
In Fiddler, look at the Caching response inspector. This Inspector consults the Expires and Cache-Control headers and if they're missing, computes the heuristic expiration time using the RFC2616 algorithm. –  EricLaw Jan 14 '13 at 22:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.