Created
August 15, 2014 09:34
-
-
Save thomasmb/33460f0236090181bd88 to your computer and use it in GitHub Desktop.
Sperate varnish cache for HTTPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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