Created
February 7, 2014 17:52
-
-
Save pnommensen/8867973 to your computer and use it in GitHub Desktop.
pass large files for varnish
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 { | |
# Bypass cache for files > 10 MB | |
if (std.integer(beresp.http.Content-Length, 0) > 10485760) { | |
return (hit_for_pass); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment