3 ms·
Varnish won't cache anything for logged in users by default because they'll have a session cookie. Actually, the main challenge with rolling out Varnish is maki
by eli 13y ago
Varnish won't cache anything for logged in users by default because they'll have a session cookie. Actually, the main challenge with rolling out Varnish is making sure that anonymous users don't have any extra cookies set that could make Varnish think they are not all the same.
- sergiosgc 13y agoYes, the default config does have that (safe) behaviour. It's rather easy to change, by replacing the vcl_recv function in the config. Something like: sub vcl_recv { if (req.http.cookie ~ "wordpress_logged_in_|comment_author_|wp-postpass_") { return (pass); } return (lookup); }