Rocket Loader 404 and MIME Type Error

What is the name of the domain?

biletbayisi com

What is the error message?

GET /cdn-cgi/scripts/rocket-loader.min.js-cb/cloudflare-static/rocket-loader.min.js net::ERR_ABORTED 404 (Not Found)

What is the issue you’re encountering

Rocket Loader causing 404 and MIME type errors for /cdn-cgi/scripts/rocket-loader.min.js, sometimes loading, sometimes failing.

What steps have you taken to resolve the issue?

Cleared Cloudflare cache, disabled and re-enabled Rocket Loader, cleared browser cache, tested in Development Mode, and tried accessing the script directly in the browser.

2 Likes

video: Watch Screen Recording 2025-02-28 at 12.27.28 | Streamable

200:
Summary
URL: https://**.com/cdn-cgi/scripts/rocket-loader.min.js-cb/cloudflare-static/rocket-loader.min.js
Status: 200
Source: Disk Cache

Request
No request, served from the disk cache.

Response
Cache-Control: public
cf-ray: 918f61a31e25d5f7-IST
Content-Encoding: br
Content-Type: application/javascript
Date: Fri, 28 Feb 2025 09:27:54 GMT
Expires: Fri, 28 Feb 2025 10:15:54 GMT
Server: cloudflare
Vary: accept-encoding
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

404:
Summary
URL: https://**.com/cdn-cgi/scripts/rocket-loader.min.js-cb/cloudflare-static/rocket-loader.min.js
Status: 404
Source: Network
Address: 172.66.40.108:443

Request
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: ****
Priority: u=0, i
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15

Response
cf-ray: 918f6a3f6ebbd5f2-IST
Content-Encoding: gzip
Content-Type: text/html
Date: Fri, 28 Feb 2025 09:33:46 GMT
nel: {“success_fraction”:0,“report_to”:“cf-nel”,“max_age”:604800}
Report-To: {“endpoints”:[{“url”:“https://a.nel.cloudflare.com/report/v4?s=DzX7q%2FRvGwwQrMLolij3WRN1O0cMMSGcxrCHDKtpBrrPWRDtLljUPlr06tb2%2Fbe%2BIh8c02L%2F%2FEKQfGvDtQHt1J4QjbXP6nDy4doI8FxGYm2nlPeBWY1hb2xFfNGsPajCM1c%3D”}],“group”:“cf-nel”,“max_age”:604800}
Server: cloudflare
Server-Timing: cfExtPri
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Frame-Options: DENY

I have exactly the same problem, sometime the endpoint returns the javascript but 90% of the time I get 404

1 Like

We have the same problem!
Some users often get the wrong URL and 404, others - rarely.

Same issue here! I have multiple domains on Cloudflare, and this error occurs sporadically.

The error is related to rocket-loader.min.js and email-decode.min.js:

Refused to execute script from '[mydomain]/cdn-cgi/scripts/email-decode.min.js-cb/cloudflare-static/email-decode.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Refused to execute script from '[mydomain]/cdn-cgi/scripts/rocket-loader.min.js-cb/cloudflare-static/rocket-loader.min.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Reloading the page with Shift+Ctrl+R temporarily resolves the issue, but it’s causing problems for our customers. Any insights on how to fix this permanently?

1 Like

Same problem here since few days ago. I can’t understand why CF sometimes injects the js file from the “cdn-cgi/scripts/rocket-loader.min.js-cb/cloudflare-static” path instead of “cdn-cgi/scripts/7d0fa10a/cloudflare-static”.

1 Like

We have same problem on our website, It happens once in a while.

When this happens, the page doesn’t load anymore and all elements are broken

Same problem is happening to me, 99% of the time the domain loads correctly but sometimes it gives that error and loads nothing.

I’m having this problem on free account. On PRO accounts, I apparently haven’t been able to identify the problem yet. I tried intercepting this wrong url and redirecting it to the correct url, via pagerule, but it didn’t work. Has anyone managed to do a workaround while Cloudflare doesn’t fix this?

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