After activating Cloudflare on my site, I am seeing that resources on my pages are not being cached.
Why is Cloudflare’s caching not working on my site?
Dear <customer name>,
A Cache-Control header can include a number of directives, and the directive dictates who can cache a resource along with how long those resources can be cached before they must be updated.
Your Cache-Control is received as follows:
Cache-Control: no-store, no-cache
no-store — Indicates any cache, such as a client or proxy cache, must not store any part of either the immediate request or response.
no-cache — Indicates the response cannot be used to satisfy a subsequent request without successful validation on the origin server. This allows an origin server to prevent a cache from using the origin to satisfy a request without contacting it, even by caches that have been configured to send stale responses.
max-age=seconds — Indicates the response is stale after its age is greater than the specified number of seconds. Age is defined as the time in seconds since the asset was served from the origin server. The seconds argument is an unquoted integer.
must-revalidate — Indicates that once the resource is stale, a cache (client or proxy) must not use the response to satisfy subsequent requests without successful validation on the origin server.
With the set Cache-Control header, Cloudflare won't cache your content.
You can use Cache Rules to customize the cache settings to enable caching.
Example: Cache-Control: public, max-age=3600