Guest User

Untitled

a guest
Jul 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. sub vcl_recv {
  2. if (!client.ip ~ othervarnish) {
  3. set req.backend = varnish;
  4. }
  5. }
  6.  
  7. sub vcl_fetch {
  8. if (beresp.http.X-Meta-Has-Esi && !client.ip ~ othervarnish) {
  9. esi;
  10. }
  11. }
  12.  
  13. Request ---> VarnishA MISS --> VarnishB MISS --> Backend (success with esi parsed)
  14.  
  15. New Request ---> VarnishA HIT (success with esi parsed)
  16. New Request ---> VarnishB HIT (fail, esi will not be parsed)
Add Comment
Please, Sign In to add comment