Skip to content

Instantly share code, notes, and snippets.

@lkarsten
Created November 1, 2011 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkarsten/1331637 to your computer and use it in GitHub Desktop.
Save lkarsten/1331637 to your computer and use it in GitHub Desktop.
sub vcl_hash {
hash_data(req.url);
if (req.http.X-newhash) {
hash_data(req.http.X-newhash);
}
if (req.http.host) {
hash_data(req.http.host);
} else {
hash_data(server.ip);
}
return (hash);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment