Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49206

Mercury 1.1: has_js cookie and Varnish

$
0
0

Hi,
I successfully update my server from Ubuntu 9.04 & Mercury 1 to Ubuntu 10 LTS & Mercury 1.1,
but I notice that on the new Varnish default.vlc there is no has_js cookie bypass. Is it not useful anymore?

Mercury 1

  // Remove has_js and Google Analytics cookies.
  set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(__[a-z]+|has_js)=[^;]*", "");

Mercury 1.1

// Remove Google Analytics cookies.
  set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(__[a-z]+)=[^;]*", "");

Also in the new default.vlc there is a comment:

#PLEASE DON'T EDIT THIS FILE DIRECTLY - SEE /etc/mercury/server_tuneables

And in /etc/mercury/server_tuneables there is another comment saying:
#Use this file (/root/MERCURY_TUNEABLES) to set variables in config files rather than editing the config file directly. 
#This allows BCFG2 to use your values rather than replacing the file with our defaults.
#Any variable not set in this file (ie, left empty) receives the default value (often based on system memory size)

I feel a bit lost about server_tuneables, templates and all this stuff, can someone explain step by step how to modify this?

Thank you in advance


Viewing all articles
Browse latest Browse all 49206

Trending Articles