I have the following Cache-Control header being sent (and I can see it from my browser):
Cache-Control: public, max-age=600, stale-while-revalidate=30
My expectation is that Cloudflare would always return the cached version and fetch the new one in the background. However I’m always getting:
In case this helps:
Cloudflare only caches certain file extensions by default, and does not cache things like HTML unless you configure a Cache Everything page rule. DYNAMIC indicates that you need to apply Cache Everything.
I tried doing that now and it worked partially, however I found another issue:
max-age is being respected, the
Steps to reproduce:
- Request before
max-age: response is fast and
- Request after
max-age and within
stale-while-revalidate: response is slow and
Update: this is a known issue ignored by Cloudflare… Great.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.