- Oct 28, 2020
- 11,663
- 14,635
Hey guys!
I'm having a problem with the LiteSpeed Cache plugin, in the sense that it always... ok, maybe not always, but quite often it asks me to add / replace the code below (the code might be different sometimes, but in this particular case it's this one) in the .htaccess file:
Actually, more than why LSC does this I would like to know how I can stop it from pestering me with this warning many times when I log into my WP dashboard to do stuff. Can someone please tell me how I can automate this thing so that LSC can add the damn code by itself? Thanks!
I'm having a problem with the LiteSpeed Cache plugin, in the sense that it always... ok, maybe not always, but quite often it asks me to add / replace the code below (the code might be different sometimes, but in this particular case it's this one) 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
Actually, more than why LSC does this I would like to know how I can stop it from pestering me with this warning many times when I log into my WP dashboard to do stuff. Can someone please tell me how I can automate this thing so that LSC can add the damn code by itself? Thanks!