Script Update

When I change the code of my website in GitHub, in Cloudflare the html files are updated immediately and changes can be seen in the website. But the Javascript codes aren't updated immediately. It's takes time to update. Why so? And how do I solve it?
1 Reply
Chaika
Chaika6mo ago
Are you using Cloudflare Pages with a Custom Domain, and static script names? If you are, and it's just on the Custom Domain, probably getting hit by default Cloudflare cache. You can disable the default Cloudflare Cache as Pages itself has internal cache. Under Caching -> Cache Rules, you can create a new one like this, replacing yourcustomdomain.com with your custom domain.
No description
Want results from more Discord servers?
Add your server