views:

82

answers:

2

I thought I understood what the Http Header "Cache-Control: max-age=3600" meant but then I came across it in a client request as this:

Cache-Control: max-age=0

I'm not entirely sure what this means from a client's perspective.

Any insight would be great.

Thanks

A: 

This means that the browser should NEVER cache the page, it should always retrieve a fresh copy of the page.

Chi
With be awesome if people stated why they downvote answers ..
cwap
I didn't downvote, but I think it's because it only deals with the headers from the server and not the confusing client ones.
Allain Lalonde
+2  A: 

The answer is explained here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.4

When used by user agents, its aim is to get intermediate caches to revalidate the response - so it's not for the server to deal with.

In server responses, max-age tells the client (and intermediate caches) how long to cache the response for.

Snukker