Guest User

Untitled

a guest
May 17th, 2018
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. # You must set a grace period on any object you put in cache for this to work.
  2.  
  3. sub vcl_hit {
  4. if (obj.ttl >= 0s) {
  5. return (deliver);
  6. }
  7. if (obj.ttl + obj.grace > 0s) {
  8. return (deliver);
  9. }
  10.  
  11. # This must return fetch if Varnish version 4/5. This is config for Varnish 6
  12. return (miss);
  13. }
Add Comment
Please, Sign In to add comment