9

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

1

2 Answers 2

6

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.

1
  • 2
    Is there any way we can force the clients not to revalidate for static assets? Commented Feb 13, 2012 at 8:07
-3

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

3
  • 2
    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. Commented Jun 8, 2009 at 19:23
  • That's right, this question is specifically talking about when the Client sends that header. Commented Mar 1, 2013 at 2:47
  • 1
    This answer mistakes the Cache-Control on the Client with an the server, simply the wrong answer. Downvoted since this answer should have been deleted by the @Chi already Commented Aug 30, 2019 at 13:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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