Unexpected cache rule ExpiresDefaultfound in .htaccess file.




Wordpress LScache Plugin: Unexpected cache rule ExpiresDefaultfound in .htaccess file.

Last Updated on: Wed, 15 Apr 2026 00:00:02
I getting this error some how. I dont have any other cashing plugin but I am still getting it Unexpected cache rule ExpiresDefault found in .htaccess file. This rule may cause visitors to see old versions of pages due to the browser caching html pages. If you are sure that html pages are not being browser cached, this message can be dismissed. (Learn More) and yes I had some modification, RewriteCond % HTTP:Origin ^http(s)?://(.+ .)?(zamzamplace.com)$ RewriteRule .(otf|ttf|eot|woff)$ ? [E=THE_ORIGIN:%0] Header set Access-Control-Allow-Origin % THE_ORIGIN e env=THE_ORIGIN Header always set Access-Control-Allow-Origin BEGIN WP Rocket v3.1.4 # Use UTF-8 encoding for anything served text/plain or text/html AddDefaultCharset UTF-8 # Force UTF-8 for a number of file formats AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml # FileETag None is not enough for every server. Header unset ETag # Since were sending far-future expires, we dont need ETags for static content. # developer.yahoo.com/performance/rules.html#etags FileETag None Header set X-Powered-By WP Rocket/3.1.4 Header unset Pragma Header append Cache-Control public Header unset Last-Modified ^http(s)?://(.+ .)?(zamzamplace.com)$ origin_is=$0 Header set Access-Control-Allow-Origin % origin_is e env=origin_is Header set Access-Control-Allow-Origin Header unset Pragma Header append Cache-Control public SetEnvIf Origin ? ^http(s)?://(.+ .)?(zamzamplace.com)$ origin_is=$0 Header set Access-Control-Allow-Origin % origin_is e env=origin_is # Expires headers (for better cache control) ExpiresActive on # Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault access plus 1 month # cache.appcache needs re-requests in FF 3.6 (thanks Remy Introducing HTML5) ExpiresByType text/cache-manifest access plus 0 seconds # Your document html ExpiresByType text/html access plus 0 seconds # Data ExpiresByType text/xml access plus 0 seconds ExpiresByType application/xml access plus 0 seconds ExpiresByType application/json access plus 0 seconds # Feed ExpiresByType application/rss+xml access plus 1 hour ExpiresByType application/atom+xml access plus 1 hour # Favicon (cannot be renamed) ExpiresByType image/x-icon access plus 1 week # Media: images, video, audio ExpiresByType image/gif access plus 1 month ExpiresByType image/png access plus 1 month ExpiresByType image/jpeg access plus 1 month ExpiresByType video/ogg access plus 1 month ExpiresByType audio/ogg access plus 1 month ExpiresByType video/mp4 access plus 1 month ExpiresByType video/webm access plus 1 month # HTC files (css3pie) ExpiresByType text/x-component access plus 1 month # Webfonts ExpiresByType application/x-font-ttf access plus 1 month ExpiresByType font/opentype access plus 1 month ExpiresByType application/x-font-woff access plus 1 month ExpiresByType application/x-font-woff2 access plus 1 month ExpiresByType image/svg+xml access plus 1 month ExpiresByType application/vnd.ms-fontobject access plus 1 month # CSS and JavaScript ExpiresByType text/css access plus 1 year ExpiresByType application/javascript access plus 1 year # Gzip compression # Active compression SetOutputFilter DEFLATE # Force deflate for mangled headers SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X 15 | 15 |- 15 )$ ^((gzip|deflate) s ,? s )+|[X-] 4,13 $ HAVE_Accept-Encoding RequestHeader append Accept-Encoding gzip,deflate env=HAVE_Accept-Encoding # Dont compress images and other uncompressible content SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary # Compress all output labeled with one of the following MIME-types AddOutputFilterByType DEFLATE application/atom+xml application/javascript application/json application/rss+xml application/vnd.ms-fontobject application/x-font-ttf application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/html text/plain text/x-component text/xml Header append Vary: Accept-Encoding # END WP Rocket # BEGIN LSCACHE ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## RewriteEngine on CacheLookup on RewriteRule . ? [E=Cache-Control:no-autoflush] ### 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 LOGIN COOKIE start ### RewriteRule .? ? [E= Cache-Vary:wp-postpass_d3f396dc772d81a16922db2217173f4a ] ### marker LOGIN COOKIE end ### ### marker FAVICON start ### RewriteRule favicon .ico$ ? [E=cache-control:max-age=86400] ### marker FAVICON end ### ### marker WEBP start ### RewriteCond % HTTP_ACCEPT image/webp [or] RewriteCond % HTTP_USER_AGENT Page Speed 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 ### ## 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! ## ## LITESPEED WP CACHE PLUGIN ? Do not edit the contents of this block! ## # END NON_LSCACHE # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index .php$ ? [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond % REQUEST_FILENAME -f [OR] RewriteCond % REQUEST_FILENAME -d RewriteRule ^ ? [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes). ) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(. .php)$ $2 [L] RewriteRule . index.php [L] # END WordPress Hi, LSCWP doesnt add expire for HTML page , only for static resources # Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault access plus 1 month this seems to be your culprit. Best regards, yes correct the warning is gone. when i searched i found that was related to Wp rocket cashing that i installed once. and deleted. do you see anything else belong to wp rocket that need to delete it let me know. great help thank you Hi, In your htaccess, you will see 2 lines says START END WP Rocket and END WP Rocket , all lines between should be removed. Best regards, ]



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



Reference