
Multiple directives are separated by commas. Although not case sensitive, lowercase is recommended. What is the Syntax of Cache-Control Response Header?Ī caching directive should have the conditions below to be assumed as a valid cache directive. The response must be fetched every time the request is made and cannot be cached.Ĭache-control directive and value examples with their explanations. Cache-Control valueįor up to one day (60 seconds x 60 minutes x 24 hours), the response can be cached by browsers and intermediary caches.īrowsers can cache responses for 60 seconds (but not intermediary caches) for up to 10 minutes.Īny cache can store the response for 1 year. What is the Compatibility of the Cache-Control HTTP Header?Įxamples for Cache-Control Response HeaderĬache-control example values and their descriptions are below. Which RFC Specifications Can be used for understanding Cache-Control HTTP Header? #Html cache private cache how to
How to Require Revalidation for Cached Assets with Cache-Control HTTP Header? How to Cache Static Assets with Cache-Control HTTP Header? How to Prevent Caching with Cache-Control HTTP Header? Other Directives of Cache-Control HTTP Header Revalidation and reloading Directives of Cache-Control HTTP Header stale-while-revalidate= Definition and Usage
Expiration Directives of Cache-Control HTTP Header Cacheability Directives of Cache-Control HTTP Header What are the Types of Cache-Control HTTP Headers? What are the Cache-Control Extension Directives? What are the Cache-Control Response Headers? What are the Cache-Control Request Headers? What is the Syntax of Cache-Control Response Header? Examples for Cache-Control Response Header