Cloudflare Etag - Page Rule-like behavior

caching

#1

In Cloudflare, is there any way to clear the cache on a page every time a specific file’s etag is changed?

I’m hoping to set up a page to Cache Everything, including the page DOM. However, when a javascript file on that page is changed, it could break the way the page is rendered and thus the page DOM should not be cached.

Is there any way via cloudflare to check whether the DOM’s file should not be cached, by checking the etag of a specific JS file?

Right now it can take 5+ seconds using this framework to render a page on desktop and more on mobile, so we really need to get this cache in place.

I suppose we could run JS on the page to do this as well. We don’t have control over the server which is running our application - that is managed by another company.

Thanks,
Chris


#2

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