[solved] Disabling Caching for a single domain

Discussion in 'General' started by optize, Jul 16, 2011.

  1. optize

    optize Well-Known Member

    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 a moderator: Jul 20, 2011
  2. NiteWave

    NiteWave Administrator

    in .htaccess,

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

    optize Well-Known Member

    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
  4. optize

    optize Well-Known Member

    Upgraded to 4.1.2, it works now.


Share This Page