JS/CSS is being returned as HTML so Mime type is being detected as such

All CSS and JS is being returned as HTML which causes the error

“Refused to apply style from ‘URL/public/CACHE/css/output.bb898be77e00.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.”


“Refused to execute script from ‘URL/public/index.solid-app.js’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.”

Enabled development mode or purging the cache fixes the issue temporarily.

I’ve tried implementing a cache rule to bypass cache for the following matching URI Path “(http.request.uri.path eq "^\/.*\.(css|js)$”)”.

I’ve also tried implementing a page rule matching URL expression “tune.fm/*.(css|js)” setting cache level to ‘bypass’.

Neither of these two solutions worked.

We have the following settings enabled:

Cache level = Standard
Browser cache TTL = 4 hours
Crawler hints = On

Please help as this breaks our whole site and app.

Should be https://tune.fm/public/index.solid-app.js

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