302 Found error




Wordpress LScache Plugin: 302 Found error

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I have a wordpress multisite with 4 subsite that each subsite use different themes. LSCache settings for these subsites are similar. But in second blog (subsite) files not loading with 302 found error. I tested it with combine disabled, minify disabled, load asynchronously css on/off, Empty all caches from toolbox, http/2 on/off? How can i debug this? Where to start troubleshooting? Screenshot Report number: ZFOIRBIT Report date: 02/23/2021 12:40:10 The page I need help with: https://kalleh.com/book/ Hi, Could you please click that triangle right before GET ? see what it output and also please check what is the full response header from these 302 request Best regards, Sure. Status: Status: 302 Found Version: HTTP/2 Transferred: 371 B (0 B size) Referrer Policy: strict-origin-when-cross-origin Response Header: HTTP/2 302 Found x-redirect-by: WordPress location: https://kalleh.com/book/wp-content/litespeed/cssjs/17d9a.css x-litespeed-cache-control: no-cache content-type: text/html charset=UTF-8 content-length: 0 date: Wed, 24 Feb 2021 04:34:42 GMT server: LiteSpeed cache-control: no-cache, no-store, must-revalidate, max-age=0 vary: User-Agent X-Firefox-Spdy: h2 Request Header: GET /book/wp-content/litespeed/cssjs/17d9a.css HTTP/2 Host: kalleh.com User-Agent: Mozilla/5.0 (Windows NT 10.0 Win64 x64 rv:85.0) Gecko/20100101 Firefox/85.0 Accept: text/css, / q=0.1 Accept-Language: en-US,en q=0.5 Accept-Encoding: gzip, deflate, br Referer: https://kalleh.com/book/ DNT: 1 Connection: keep-alive Cookie: _gcl_au=1.1.728813197.1614077735 ls_smartpush=fdf041077ffff6d3 wp-wpml_current_language=en Pragma: no-cache Cache-Control: no-cache TE: Trailers Im sure the CSS HTTP/2 Push and JS HTTP/2 Push are disable when get this results. Hi, HTTP/2 302 Found x-redirect-by: WordPress something within WP is sending this redirect do you have other optimization/cache plugin ? in particular , some feature like remove query string ? Best regards, Sorry for the delay in reply. No, there isnt any other optimization/cache plugin. I tested it with disabling Remove Query Strings option in LSCache. But the problem persists. Could htaccess redirects cause this? I found the problem. This code auto generated in .htaccess: ### marker Network CSS/JS Auto Generation Rules start ### RewriteEngine on RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_URI !^/book/wp-content RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-content/litespeed/cssjs/. ) $2 [L] RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_URI ^/book/wp-content/litespeed/cssjs/.+ .(css|js)$ RewriteRule . /book/index.php [L] ### marker Network CSS/JS Auto Generation Rules end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## Problem solved by removing this code. Why this code generated only for this blog? How to prevent generating again? Hi, could you please show me the main site domain , and few of your network subsites domain ? you can obscure/mask the domain partially if you want to keep it secret e.g. www.domain.com -> you can write it like www.d___in.com just want to see how was your network set up. Best regards, Hi, The multisite network installed on k____h.com Multisite configured to subdirectory for subsites and we have 3 subsites: Main site: k____h.com/ blog1: k____h.com/book/ blog2: k____h.com/cookbook/ blog3: k____h.com/landings/ Also the main site is multilangual with two subdirectories: k____h.com/en/ k____h.com/fa/ Hi, is LSCWP network activated ? or individually enabled at each sites ? and please try use this ruleset , see how it goes ### marker Network CSS/JS Auto Generation Rules start ### RewriteEngine on RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_URI !^/wp-content RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-content/litespeed/cssjs/. ) $2 [L] RewriteCond % REQUEST_FILENAME !-f RewriteCond % REQUEST_URI ^/wp-content/litespeed/cssjs/.+ .(css|js)$ RewriteRule . /index.php [L] ### marker Network CSS/JS Auto Generation Rules end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## Best regards, Hi, Yes LSCWP is network activated. Page optimization configured for each site. I tried with that rulset and issue fixed. But every time I save LSCWP settings, rulsets reset to default. Hi, yes , its because everything you save setting , LSCWP will flush the rewrite rule we will deal that later once we conclude where/what is the issue. with my ruleset , does it work properly on all sites ? Best regards, Yes. with your ruleset (or even remove this block) all subsites loaded properly. Hi, Could you please try the v3.7 branch ? you can get that version in toolbox -> beta test -> dev , it should fix the issue for the network minifed/combined files. Best regards, Hi, I update LSWPCACHE to Version 3.7-rc18 After update and save settings again, that block of rulesets removed from htaccess. Problem solved. All sites loaded properly. Thank you.



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference