Skip to content

Instantly share code, notes, and snippets.

@thomasmb
Created August 15, 2014 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thomasmb/33460f0236090181bd88 to your computer and use it in GitHub Desktop.
Save thomasmb/33460f0236090181bd88 to your computer and use it in GitHub Desktop.
Sperate varnish cache for HTTPS
sub vcl_hash {
# … Other vcl_hash stuff
# If this is a HTTPS request, keep it in a different cache
if (req.http.X-Forwarded-Proto) {
hash_data(req.http.X-Forwarded-Proto);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment