O'Reilly logo

HTTP Developer’s Handbook by Chris Shiflett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cache-Control

The Cache-Control header indicates the behavior expected for any caching system, usually an intermediate caching proxy that lies between the Web client and the Web server. An example use of the header is as follows:

Cache-Control: max-age=600 

Multiple directives may be specified with a single Cache-Control header as a comma-delimited list. This is illustrated by the following example:

Cache-Control: max-age=600, no-cache=”Set-Cookie” 

Depending on whether the Cache-Control header is included in the HTTP request or the HTTP response, it can be assigned a different set of values. Each of these values (usually called directives) is interpreted in a very specific way so that caching systems behave exactly as expected.

For HTTP requests, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required