Advertisement
Guest User

Untitled

a guest
Feb 14th, 2012
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. sub vcl_hit {
  2.  
  3. if (obj.ttl < 1s) {
  4. return (pass);
  5. }
  6.  
  7. if (req.http.Cache-Control ~ "no-cache") {
  8. # Ignore requests via proxy caches, IE users and badly behaved crawlers
  9. # like msnbot that send no-cache with every request.
  10. if (! (req.http.Via || req.http.User-Agent ~ "bot|MSIE|HostTracker")) {
  11. set obj.ttl = 0s;
  12. return (restart);
  13. }
  14. }
  15.  
  16. return (deliver);
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement