4 ms·
I do not think that he should overwrite vcl_hash. By default Varnish caches by the request host and not the backend host? Here is the default: sub vcl_hash {
by jjoergensen 13y ago
I do not think that he should overwrite vcl_hash. By default Varnish caches by the request host and not the backend host?
Here is the default:
sub vcl_hash {
hash_data(req.url); if (req.http.host) {
hash_data(req.http.host);
} else {
hash_data(server.ip);
}
return (hash);
}
- spooneybarger 13y agoit caches by host. this would allow you to serve multiple sites through it like: example.com/foo and another.com/foo without a cache collision. we don't care about the host as everything is of the same entity service type.
- jjoergensen 13y agoI must have scanned the blog post too quickly. Thanks for the clarification.