Skip to content

Instantly share code, notes, and snippets.

@pnommensen
Created February 7, 2014 17:52
Show Gist options
  • Save pnommensen/8867973 to your computer and use it in GitHub Desktop.
Save pnommensen/8867973 to your computer and use it in GitHub Desktop.
pass large files for varnish
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