I’m still in the investigation phase on this one and will inform as we obtain more results but here is the gist:
Nginx host serving up an index.html with a Link: request for main.js preload.http2/push.
Caching strategy: standard.
main.js (max-age=7200, s-maxage=3600) - cf-cache: hit
the index (max-age=7200, s-maxage=3600) is served from nginx with no hit or miss from cf or any status
If I create a page rule set to “Cache Everything” the index and main then return with:
- cache-control: public, max-age=31536000
- cf-cache-status: HIT
So 2 fold issues: The main one is that the index isnt cached at all. The second is that when using cache everything the cache-control isnt being respected from the origin. We’re far more interested in the first part.
Our current hypothesis is that the cache-control is of differing times and throwing off the cache when served via a push. Anyone run into anything like this?