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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > [solved] Disable Cache for everyone except 1 customer?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2012, 12:43 PM
optize optize is offline
Senior Member
 
Join Date: Feb 2010
Posts: 121
Default [solved] Disable Cache for everyone except 1 customer?

Is it possible to enable LS Caching, but only for a single domain and not cache anyone else?

I can see that you can set do not cache URLs, but I want the opposite, I only want to cache certain URLs.

Last edited by NiteWave; 01-20-2012 at 06:59 PM..
Reply With Quote
  #2  
Old 01-20-2012, 03:47 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
this is resolved.

just for other's info:

as there are 1000s of accounts on server, private cache can not be used because it is inconvenient to disable private cache (via rewrite rule in .htaccess) for others. In this case, only public cache should be used. To enable public cache for such an account, do this:

1. Cache Policy in Admin CP
Enable Cache: No
Enable Private Cache: No

2. Add rule in very top of .htaccess for the account to enable cache
RewriteRule ^(.*)$ - [E=Cache-Control:max-age=120,L]
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 08:41 PM.



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