LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   LiteSpeed Cache (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=30)
-   -   [solved] Disable Cache for everyone except 1 customer? (http://www.litespeedtech.com/support/forum/showthread.php?t=5647)

optize 01-20-2012 12:43 PM

[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.

webizen 01-20-2012 03:47 PM

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]


All times are GMT -7. The time now is 05:24 PM.