Plugin Support
qtwrk
(@qtwrk)
Hi,
please provide the report number , you can get it in toolbox -> report -> click “send to LiteSpeed”
and is it multisite network? or just one individual WP ?
Best regards,
Hi, the website is an individual WP installation, this is the report number: WJIJFFUR.
Thanks for helping.
Angelo
Plugin Support
qtwrk
(@qtwrk)
Hi,
Do you have any steps or patterns for how to reproduce this 404 error ?
Best regards,
The 404 errors are generated from SemRush, this SEO tool finds those files but when I flush the litespeed cache the files in this folder are always different and SemRush finds other files that gives a 404.
Don’t know how to solve that..
Plugin Support
qtwrk
(@qtwrk)
Hi,
yes, LSCWP may update/change the file names when it is being purged, but please forgive my bluntness, how does a JS or CSS 404 have anything to do with SEO ?
I don’t really know much thing about SEO, but shoulnd’t Search Engine crawl page , then user clicks into it , it will get the latest working JS/CSS files ?
Best regards,
Sorry maybe I was not clear, this is the same problem reported from another user just 1 year ago: https://ww.wp.xz.cn/support/topic/getting-404-errors-for-litespeed-js-and-css/
The only way to solve this problem seems to be disabling the CSS and JS minifying options because your minification system creates extra files that slow down the pageload and return a 404 error.
Honestly I think that the behavior should be different and normally I expect a speed increase instead of the reverse..
Plugin Support
qtwrk
(@qtwrk)
Hi,
for speed-wise, it should only happen once when JS/CSS are not generated , once they are generated and saved into disk , it will be same as any other normal static JS/CSS file , first time will be bit slower because it has to go through minification process on the fly
from what I see , your JS/CSS are already minified , so you don’t even need to enable minify
Best regards,
The name of JS/CSS files are not the same than the ones found on SEMrush, so yes, you see that the JS/CSS are already minified, because I’m doing that with Divi (a page builder..), if I disable Divi minification and enable Litespeed minification, the problem persists.
Plugin Support
qtwrk
(@qtwrk)
yes, I know, because each time you purge, it may change the file name , but the part I still don’t get is the relation between the 404 on JS/CSS with SEO tools
@qtwrk normally a file should be always accessible if a page is requesting it, SEO tools, as you can imagine, helps understand those issues. In particular this issue is noticeable also with Google Lighthouse in the Chrome dev panel, so this is not only related to SemRush.
If there are instructions into a page that call a resource and this resource is not accessible, then:
– some problems may occur, and some functionality could miss
– if those files are not needed, they shouldn’t load of be requested from the page because this could affect SEO rankings
So, if these files changes filename when a purge is executed, all good, but then also the page instructions should target a valid and accessible resource.
True. Once the cache is purged and the old URL no longer exists it should not be called there for any crawler to even try to access.
Plugin Support
qtwrk
(@qtwrk)
if these files changes filename when a purge is executed, all good, but then also the page instructions should target a valid and accessible resource.
yes , it will link to new file name
e.g.
at time 1 , you have a page , this page has 1 JS and 1 CSS, let’s name them 12345.js and 12345.css
once this page is cached , it will set alone with these 2 files
at time 2 , when you purge, the new page will link to , let’s say , a new filename , 23456.js and 23456.css
so what you descripted, is more like SemRush is accessing the ghost page where it should be long gone ?
or it logs the JS/CSS files at time 1, and then query against at time 2 ?
this issue is not only related to SemRush but every crawler tool e.g. Lighthouse in Chrome (as described above), will notice that some resources are missing, and this affect the page ranking, sometimes also by excluding the whole page from SERP.
Litespeed should be meant to optimize performances but I think I’m not the only user that is noticing weird behaviors and low performances..
Plugin Support
qtwrk
(@qtwrk)
so if I understand it correctly , you are saying , when page is crawled by search engine , then it can never ever change its JS, CSS or static resources links ?
it may be possible that the resources link change, it surely will do it, but for some time it links to a wrong resource.