Stuck with Vary Cache htaccess
-
Hi There,
I’m struggling to implement vary cache on one of our sites based on the different variables of a cookie as below:
RewriteCond %{HTTP_COOKIE} scwp_location=melbourne [NC] RewriteRule .? - [E=Cache-Vary:melbourne] RewriteCond %{HTTP_COOKIE} scwp_location=none [NC] RewriteRule .? - [E=Cache-Vary:melbourne] RewriteCond %{HTTP_COOKIE} scwp_location=darwin [NC] RewriteRule .? - [E=Cache-Vary:darwin] RewriteCond %{HTTP_COOKIE} scwp_location=sydney [NC] RewriteRule .? - [E=Cache-Vary:sydney] RewriteCond %{HTTP_COOKIE} scwp_location=perth [NC] RewriteRule .? - [E=Cache-Vary:perth] RewriteCond %{HTTP_COOKIE} !scwp_location [NC] RewriteRule .? - [E=Cache-Vary:null]
Any indication as to what we’re doing wrong? Is it possible we’ve inserted it into ht access in the wrong place or are our declarations wrong?
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Stuck with Vary Cache htaccess’ is closed to new replies.