Exclude directory from LSCache

jayw1

Verified User
Joined
Nov 20, 2019
Messages
205
Location
USA
Hi,

We have WordPress websites which use a staging feature.
However the LSCache is causing some issues when pushing to live.
Is it possible to exclude a directory from being cached by Litespeed?

domain.com - cached
domain.com/staging* - not cached

Perhaps in .htaccess or custom httpd configurations?
 
I tried this:

RewriteEngine On
RewriteCond stage
RewriteRule .* - [E=Cache-Control:no-cache]


where 'stage' is the directory of the staging website, but it's still cached after lsws restart.
 
Back
Top