Worker Page Not Updating Assets. (www. does)

Hey all, I have a worker page updated automatically through git. It's just an index file, css file, and js file. The primary domain without www will update index file but not the assets. The www subdomain updates all of them. I tried deleting the entire page and re-creating it, using a computer that's never seen this site, and verified that the github repo is correct. When I click on the pagename.pages.dev link, it works fine. Any ideas? I'm stumped. BTW, the main domain and www sub are both in custom domains with the same rules. DNS page looks fine.
2 Replies
pinghut
pinghutOP3mo ago
FIXED. I had to turn off caching for that website. Not sure how this happened, so if someone can help point me in the direction of the correct way to fix it, feel free. Luckily, this site barely gets any traffic so whatever.
Chaika
Chaika3mo ago
That's actually the recommended setup for Pages Custom Domains -- disable custom domain cache because Pages has internal cache (KV) and the default cache caches js/css and cause issues like that unless you use unique hash-based file names with each deployment
Want results from more Discord servers?
Add your server