HTML is cached by CF, but doesn't have an ETag

I currently have a Cloudflare Pages site, served with a custom domain, and I have enabled HTML caching for a subfolder (using Cache Everything page rule). It seems to be working, in the sense that the responses all have CF-Cache-Status: HIT, but the responses have no ETag or Last Modified headers. If I request the same pages directly from the Cloudflare Pages URL (https://whatever.pages.dev/index.html) the tags are there, but not via https://www.mysite.com/index.html.

Is there some setting that can conflict with the ‘Cache Everything’ page rule causing it not to include these headers? They’re present on all other cached resources (images, json etc), but not .html files.

Never mind, I solved it myself. Any option that modifies the HTML will remove the ETag. For me this was Email Obfuscation, Automatic HTTPS Rewrites, and automatic setup for Web Analytics (appending the javascript beacon).

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.