LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   [solved] Disabling Caching for a single domain (http://www.litespeedtech.com/support/forum/showthread.php?t=5131)

optize 07-15-2011 09:32 PM

[solved] Disabling Caching for a single domain
 
Now that Litespeed has caching and private cache, is there a way for the customer to disable it (.htaccess?) instead of having us to do it in the LS Console?

NiteWave 07-16-2011 12:19 AM

in .htaccess,

RewriteRule (.*) - [E=Cache-Control:no-cache]

optize 07-19-2011 01:12 PM

That doesn't seem to work.

I've waited 5 minutes, restarted litespeed...

It's still caching;

Content-Encoding gzip
Vary Accept-Encoding
Date Tue, 19 Jul 2011 20:11:41 GMT
Server LiteSpeed
Connection Keep-Alive
Keep-Alive timeout=5, max=100
X-LiteSpeed-Cache hit,private
Content-Length 6842
X-Powered-By PHP/5.2.16
Content-Type text/html; charset=UTF-8
Cache-Control private, no-cache="set-cookie"
Expires 0
Pragma no-cache


RewriteRule (.*) - [E=Cache-Control:no-cache]

is in the .htaccess file

optize 07-19-2011 04:47 PM

Upgraded to 4.1.2, it works now.

Thanks.


All times are GMT -7. The time now is 11:29 PM.