Wordpress - Not serving from cache for specific domain names

Mr_Parham

Well-Known Member
#1
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
 

NiteWave

Administrator
#2
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.
 
Top