Hello everyone!
I'm encountering an issue with the LiteSpeed Cache plugin. It consistently, well, perhaps not always, but frequently prompts me to insert or replace the code below (the code might vary at times, but in this specific instance, it's as follows) in the .htaccess file:
Beyond understanding why LSC behaves this way, I'm more interested in finding a solution to cease the recurring warnings every time I log into my WP dashboard. Can someone guide me on automating this process so that LSC can autonomously add the necessary code? Thanks!
I'm encountering an issue with the LiteSpeed Cache plugin. It consistently, well, perhaps not always, but frequently prompts me to insert or replace the code below (the code might vary at times, but in this specific instance, it's as follows) in the .htaccess file:
Code:
# BEGIN LSCACHE
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
<IfModule LiteSpeed>
RewriteEngine on
CacheLookup on
RewriteRule .* - [E=Cache-Control:no-autoflush]
RewriteRule \.litespeed_conf\.dat - [F,L]
### 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 ###
### marker WEBP start ###
RewriteCond %{HTTP_ACCEPT} "image/webp"
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
RewriteCond %{HTTP_USER_AGENT} iPhone.*Version/(\d{2}).*Safari
RewriteCond %1 >13
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
### marker WEBP end ###
### marker DROPQS start ###
CacheKeyModify -qs:fbclid
CacheKeyModify -qs:gclid
CacheKeyModify -qs:utm*
CacheKeyModify -qs:_ga
### marker DROPQS end ###
</IfModule>
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
# END LSCACHE
Beyond understanding why LSC behaves this way, I'm more interested in finding a solution to cease the recurring warnings every time I log into my WP dashboard. Can someone guide me on automating this process so that LSC can autonomously add the necessary code? Thanks!