I just ran into this problem this morning using my own server, only affected my customers in Sarasota.
Refused to execute script from
'https://www.merisapp.com/7eabd35...js?meteor_js_resource=true' because its MIME type
('text/html') is not executable, and strict MIME type checking is enabled.
This creates a big problem because the only remedy is to:
purge Cloudflare CDN
clear browser data for the affected website (multiple clicks!) to get rid of browser cache and service worker cache
reconnect
This seems like a Cloudflare issue? (only happened in 1 region for me and purging fixes it)
Sounds like a 404 page got cached on your zone. Not a Pages issue. Pages handles cache and stuff itself, adding your own layer on top just causes these problems.
Thinking about your response…
Can I assume each geographic area queries my server on their own? Or does Cloudflare query my server once to distribute to all CDN zones?
It is conceivable that my server may have failed for a request in the Sarasota zone but not failed in the Northwest zone.
Is there a suggested way I can trace back from the cached response to understand where Cloudflare may have been served a bad page?
I’m hitting this issue in firefox/safari. It seems like whenever the browser has cached content, content is getting the wrong content-type/mime type. My repro is really simple, if I get bootstrap.min.js and then get it again (browser cached), I get the following error: