CDN and compressed .js files not found
-
Hi,
I’m using W3TC from some time ago and it worked well in combination with Amazon Cloudfront. But some weeks ago people noticed failures in the page.After some tests, I noticed the situation happens when using JSS minification and CDN. I deactivated JSS minification but if I turn on CDN (clearing caches of course), the page request some .js.gzip files from the thema, for example:
GET https://cdn2.elece.net/blog/wp-content/themes/Divi/js/custom.js.gzip net::ERR_ABORTED 404
The *.js.gzip files doesn’t exist in the CDN or my server directory. I tried to manually compress the files (gzip and deflate are active in Apache) but it leads to another error:
Uncaught SyntaxError: Invalid or unexpected token
(also, the JS minification and HTML compression is deactivated)
The only way the page displays zero errors is deactivating CDN.
Is possible to tell CDN not to load the .gzip files? Is this configuration saved anywhere and not cleared when flushing caches?Thank you!
The page I need help with: [log in to see the link]
The topic ‘CDN and compressed .js files not found’ is closed to new replies.