lightmy.day

HTTP headers

CDN-Cache-Control HTTP Header Meaning

CDN-Cache-Control gives cache directives specifically to CDN shared caches.

Meaning

The origin can send CDN-focused cache instructions without changing browser cache behavior.

Where it appears

Some CDNs read it on responses to separate edge cache policy from browser Cache-Control.

What to check

Check CDN support before relying on it, and keep Cache-Control correct for clients that ignore this header.

Example

CDN-Cache-Control: max-age=86400

Common values and directives

max-age
max-age=<seconds>CDN caches can reuse the response for this many seconds.
s-maxage
s-maxage=<seconds>Shared CDN caches use this value instead of max-age.
no-store
The CDN should not store the response.
private
The response is intended for a private cache, not a shared CDN cache.
public
The response is explicitly allowed in shared CDN caches.

References

Related HTTP headers

Related HTTP status codes