Etag is removed by in wrangler preview:remote mode

in preview with local resources mode, the response header contains a etag (from Nextjs cache) and the subrequest could return 304 when cache hits. but in preview with --remote flag the etag is removed. i find the doc says about disabling Email Obfuscation and Automatic HTTPS Rewrites https://developers.cloudflare.com/cache/reference/etag-headers/. i tried it but not working (i suspect this is the solution though, because i am just doing preview with remote cloudfalre resources like kv, i don't think it respects other configurations on clouddlare console)
Cloudflare Docs
Using ETag Headers with Cloudflare
ETag headers identify whether the version of a resource cached in the browser is the same as the resource at the origin web server. A visitor's browser stores ETags. When a visitor revisits a site, the browser compares each ETag to the one it stored. Matching values cause a 304 Not-Modified HTTP response that indicates the cached resource versi...
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?