Skip to content

Commit

Permalink
Merge pull request #33 from christianwiedemann/http_https_cache_data
Browse files Browse the repository at this point in the history
Cache HTTP/HTTPS separate.
  • Loading branch information
lmakarov authored Mar 12, 2019
2 parents ec0d2b7 + b1422e1 commit f312fc5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conf/default.vcl.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,10 @@ sub vcl_synth {
"} );
return (deliver);
}

# Cache HTTP and HTTPS separate.
sub vcl_hash {
if (req.http.X-Forwarded-Proto) {
hash_data(req.http.X-Forwarded-Proto);
}
}

0 comments on commit f312fc5

Please sign in to comment.