LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > [solved] Disabling Caching for a single domain

Reply
 
Thread Tools Display Modes
  #1  
Old 07-15-2011, 09:32 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Default [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?

Last edited by NiteWave; 07-19-2011 at 06:16 PM..
Reply With Quote
  #2  
Old 07-16-2011, 12:19 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
in .htaccess,

RewriteRule (.*) - [E=Cache-Control:no-cache]
Reply With Quote
  #3  
Old 07-19-2011, 01:12 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
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
Reply With Quote
  #4  
Old 07-19-2011, 04:47 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Upgraded to 4.1.2, it works now.

Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:59 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.