Javascript when served through CDN does not work


#1

Hello everyone,

Since 23.02 (or 1-2 days earlier) js served through Cloudflare all of a sudden stopped working (subdomains js.domain.com).

On a website no changes where made, webserver (Nginx) config had some minor changes, but was reverted. Did not help.
Disabling js minification on cloudflare did not help either. With option turned off I compared files served directly vs cloudflare, they are equal.

When files are served directly everything works as expected.

In chrome console there are some violation notices, but they are probably irrelevant since they appear on both times.

How to debug this?? Could it be somehow connected to DNS record: CAA 0 issue “letsencrypt.org”?

Tested in Chrome, FF, IE.

Best regards,
Anton


#2

Do you have Rocket Loader enabled? It’s in the Speed section of the Cloudflare panel. I keep this turned off, as HTTP/2 does a pretty good job of speeding up JS loads.


#3

Same here, Rocket Loader is off…


#4

I’d set up a Page Rule for that subdomain. Then start exploring options for disabling: Disable Apps, Disable Performance, Disable Security.


#5

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