404 Errors for Javascripts
-
Hi. I am getting 404 Errors for Javascript in Chrome Developer Tools. How can I fix this?
You can check the ScreenshotThe page I need help with: [log in to see the link]
-
Hi,
first of all please disable cloudflare page and rocket loader , purge all CF cache and also the LiteSpeed Cache
Best regards,
I have disabled rocket loader, purged all caches CF and litespeed cache. I want to use page rules to reduce TTFB. Also, Is rocket loader compatible with litespeed? Now I am getting different errors in chrome developer tool. Screenshot is given.
CF page cache and JS/CSS combine/minify are not compatible , sooner or later you will hit 404 error on JS/CSS file if you enable them both at same time.
which page is that ? didn’t see on my dev tool
-
This reply was modified 4 years, 1 month ago by
qtwrk.
By Cloudflare Page Cache you mean Cloudflare Page Rule for Cache Everything? If I disable Combine/Minify for JSS/CSS File but don’t disable the Page Rule Rule. I won’t get the error? Or do I have to disable the page rule as well as combine/minify by CF?
By JS/CSS combine/minify you mean combine/minify in Cloudflare or Litespeed?
Hi,
yes , cache everything will cache the page as well , which is something that doesn’t work nicely with LSCWP’s JS/CSS minify/combine
yes , you should either disable cache everything or disable JS/CSS combine/minify in LSCWP setting
best regards,
So, I have disabled JSS/CSS Combine by Litespeed cache. I have enabled it in Cloudflare. Can I use Javascript defer by Litespeed? Will it have any effect on AdSense? If I don’t use it. Can I enable the rocket loader by Cloudflare?
I can not be sure what or how will CF cache and rocket loader will be affecting on this matter
And What about Javascript defer by Litespeed. Will it have any effect on Adsense Ads? If I don’t use Cloudflare cache everything? What can I do to cache HTML and what are the recommended settings for CSS and Javascript that do not affect Adsense ads?
if I am reading it correctly , your webserver is not running on LiteSpeed webserver, but that means the plugin won’t be able to cache the page
that leave you the only option is to use the cloudflare cache to cache the page , and you will need to disable these options
the defer part should work even with CF cache , but rocket loader is actually doing the similar thing
Thanks for clarifying.
I am still getting these errors in the google chrome developer tool.
https://snipboard.io/WMI8OE.jpgyou need to disable guest mode , purge cloudflare cahce first
and which page is that ?
this Page. I have disabled guest mode and cleared CF cache and Litespeed cache.
Should I keep the guest mode off? Due to it, the page speed scores have dropped but the errors are resolved.
-
This reply was modified 4 years, 1 month ago by
The topic ‘404 Errors for Javascripts’ is closed to new replies.