Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- backend default {
- .host = "127.0.0.1";
- .port = "8080";
- }
- # Drupal.toolbar.collapsed=0
- sub vcl_recv {
- remove req.http.X-Forwarded-For;
- set req.http.X-Forwarded-For = client.ip;
- // Remove has_js and Google Analytics __* cookies.
- set req.http.Cookie = regsuball(req.http.Cookie, "(^|;\s*)(__[a-z]+|has_js)=[^;]*", "");
- // Remove a ";" prefix, if present.
- set req.http.Cookie = regsub(req.http.Cookie, "^;\s*", "");
- // Remove empty cookies.
- if (req.http.Cookie ~ "^\s*$") {
- unset req.http.Cookie;
- }
- }
- sub vcl_hash {
- if (req.http.Cookie) {
- set req.hash += req.http.Cookie;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement