daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest May 17th, 2018 113 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top