TL;DR: Is it possible to enable edge caching without enabling browser cache?
Hey there. I moved my CDN to Cloudflare yesterday and I’m really impressed with the performance so far.
I have one question regarding caching. My Reactjs app is hosted on S3, and all files with the exception of the HTML files are cached. This is because I want newer version of the app to be ready as soon as possible to my users, without them having to wait for the browser or server cache to expire.
About 90% of the bandwidth and requests are not cached in Cloudflare because there’s no cache-control header on HTML files. Is there a way to have Cloudflare cache HTML files on the edges without having any browser cache? That way I could purge the cache in Cloudflare when new version of the app is out, and not having to worry about browser cache on users.
I tried creating a page rule with edge caching enabled, but that added browser cache as well. I then tried to add browser cache in combination with edge cache, but the lowest browser cache is 30 minutes, which is not what I want. So the big question is: Is it possible to enable edge caching without enabling browser cache?