Guest User

Untitled

a guest
Oct 20th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. backend default {
  2. .host = "127.0.0.1";
  3. .port = "80";
  4. }
  5.  
  6. sub vcl_recv {
  7. set req.http.Surrogate-Capability = "abc=ESI/1.0";
  8. }
  9.  
  10. sub vcl_fetch {
  11. if (beresp.http.Surrogate-Control ~ "ESI/1.0") {
  12. unset beresp.http.Surrogate-Control;
  13. set beresp.do_esi = true;
  14. }
  15.  
  16. if (beresp.http.Cache-Control ~ "s-maxage") {
  17. unset req.http.Cookie;
  18. return (deliver);
  19. }
  20.  
  21. return (hit_for_pass);
  22. }
Add Comment
Please, Sign In to add comment