Wordpress LScache Plugin: 404 status for css and js files
Last Updated on: Wed, 15 Apr 2026 00:00:02 Hi, After enabling CSS combine or JS combine or even Lazy Load Images the min.xxxx.css or min.xxxx.js files are in status 404. As you can see: https://ibb.co/dxaTg9 The link to GTmetrix. Files are in Avoid bad request section: https://gtmetrix.com/reports/slowit.pl/2J60z3Az I tried to exclude my css/js theme files but it did not help. wp-content/themes/cenote My httaccess file: # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## RewriteEngine on CacheLookup on RewriteRule . - [E=Cache-Control:no-autoflush] RewriteRule ^min/ w+ .(css|js) - [E=cache-control:no-vary] ### marker CACHE RESOURCE start ### RewriteRule wp-content/. /[^/] (responsive|css|js|dynamic|loader|fonts) .php - [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ### marker FAVICON start ### RewriteRule favicon .ico$ - [E=cache-control:max-age=86400] ### marker FAVICON end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE # BEGIN NON_LSCACHE ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## ### marker MINIFY start ### RewriteEngine on RewriteCond % DOCUMENT_ROOT % REQUEST_URI ^(. )/min/( w+) .(css|js)$ RewriteCond %1/wp-content/cache/$2/$1.$2 -f RewriteRule min/( w+) .(css|js) wp-content/cache/$2/$1.$2 [L] ### marker MINIFY end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END NON_LSCACHE RewriteEngine On RewriteBase / RewriteRule ^index .php$ - [L] RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_FILENAME !-d RewriteRule . /index.php [L] # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index .php$ - [L] RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_FILENAME !-d RewriteRule . /index.php [L] # END WordPressExpand How can I fix this? Thanks Szymon This topic was modified 4 years, 1 month ago by szymcio. The page I need help with: https://slowit.pl/ Hi, Could you please verify in your WP setting , that both URL section are same of HTTP or HTTPS , dont leave it as one HTTP and another HTTPS ? Best regards, Hi qtwrk, Thanks for reply. I have set up https url in WordPress main settings. Unfortunately it did not help. Please check screen: https://ibb.co/cvPNR9 I have also added below code to .htaccess file RewriteCond % HTTP_HOST slowit .pl [NC] RewriteCond % SERVER_PORT 80 RewriteRule ^(. )$ https://slowit.pl/$1 [R,L] What I noticed: the min file is available under: https://slowit.pl/index.php/min/0a9fe.css And the page 404 error is under: https://slowit.pl/min/0a9fe.css Hi, This looks like rewrite rule problem. Could you please try , go to permalink , set to plain and see how it goes? and then change it to any other form , or your previous , and see how it goes? Best regards, Hi, When I changed to plain permalinks the html code was correct -> 200. But when I switched to any other than plain the 404 error appears. Do you know how could I solve this? Using the plain option is not good for SEO. Thanks Szymon Hi, Please submit a ticket here, we will need to dig it deeper. Best regards, Hi! Disabling the nginx server is the resulation. Thanks for help Hi, If you wish to keep nginx on , please try convert that part of rewrite rule into nginx conf. Best regards,
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference