Wordpress LScache Plugin: ESI rewrite rule in htaccess not working
Last Updated on: Wed, 15 Apr 2026 00:00:02 I have enabled ESI but the following instructions are not added to the .htaccess RewriteRule . - [E=esi_on:1] RewriteRule . - [E=cache-control:max-age=120] If I add code manually outside of Do no edit zone added by plugin, ESI is not activated. RewriteRule . - [E=esi_on:1] RewriteRule . - [E=cache-control:max-age=120] If I add code manually inside the Do no edit zone, it works but gets overwritten if Litespeed plugin settings are saved. # 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] RewriteRule . - [E=esi_on:1] RewriteRule . - [E=cache-control:max-age=120] ### marker CACHE RESOURCE start ### RewriteRule wp-content/. /[^/] (responsive|css|js|dynamic|loader|fonts) .php - [E=cache-control:max-age=3600] ### marker CACHE RESOURCE end ### ## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ## # END LSCACHE Any recommendations? This topic was modified 3 years, 1 month ago by webdevbytes. This topic was modified 3 years, 1 month ago by webdevbytes. It works if RewriteRule . - [E=esi_on:1] RewriteRule . - [E=cache-control:max-age=120] is added before the instructions added by the plugin.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference