vlasky
November 5, 2021, 6:06am
2
This is an old post, but in case someone stumbles across it, the solution to avoid browser refresh problems when using Cloudflare as a reverse proxy/CDN is to:
Disable Always Online in Cloudflare Cache Settings
If you have enabled Content Security Policy (CSP) for your Meteor app , ensure that you add a Cloudflare Page Rule to bypass Cloudflare’s cache for the URL that accesses the Meteor runtime settings file meteor_runtime_config.js .
Refer to this post/thread for more details:
Two more tips for running Meteor apps behind Cloudflare:
In Cloudflare Caching Settings, ensure you disable Always Online.
If your Meteor app goes down or if there is a brief interruption to Internet connectivity between Cloudflare and the origin server, disabling Always Online will avoid a prolonged delay until Cloudlfare recognises that your Meteor app is online again.
If you have enabled Content Security Policy (CSP) for your Meteor app , ensure that you add a Cloudflare Page Rule to by…