Posted by Anonymous on May 14, 2011 at 3:46pm
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_tuneablesAnd 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
Comments
has_js conflicted with batch API
See https://bugs.launchpad.net/pressflow/+bug/529252