Incorrect MIME type returned from CloudFlare


CloudFlare is returning the text/html file type on the _app.js file. If we bypass CloudFlare, then it returns application/javascript as expected. Is this a page rule?

Thank you

That could be the cache. Did you purge it?

What’s the full URL?

We did bust the cache and it fixed the issue. We are going to start busting the cache on every deployment to avoid this issue.

In that case it would suggest your server sends in certain cases the wrong content type and that gets cached then.

This topic was automatically closed after 30 days. New replies are no longer allowed.