[solved] Disable Cache for everyone except 1 customer?

Discussion in 'LiteSpeed Cache General' started by optize, Jan 20, 2012.

  1. optize

    optize Well-Known Member

    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 a moderator: Jan 21, 2012
  2. webizen

    webizen Well-Known Member

    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]

Share This Page