Wordpress - Not serving from cache for specific domain names

Discussion in 'LiteSpeed Cache' started by Mr_Parham, Apr 17, 2017.

  1. Mr_Parham

    Mr_Parham Well-Known Member

    Hi

    I have a quite complicated setup for my wordpress and it can be accessed view three different domain names, I need one of these domain names not to be served from cache, is that possible?

    Regards
    Parham
     
  2. NiteWave

    NiteWave Administrator

    should be ok.
    in .htaccess, at the begining, add
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
    RewriteRule .* - [E=Cache-Control:no-cache]

    you may need review the remaining rewrite rules, check those rules with
    E=Cache-Control:max-age=xxx
    to ensure above no-cache rule will not be overwritten.
     

Share This Page