Created
June 25, 2013 14:27
-
-
Save dbernar1/5858878 to your computer and use it in GitHub Desktop.
Varnish - Don't cache server error responses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub vcl_fetch { | |
if ( obj.status >= 500 ) { | |
set obj.ttl = 0s; | |
set obj.cacheable = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment