Skip to content

Instantly share code, notes, and snippets.

@lahaxearnaud
Created November 6, 2018 07:15
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save lahaxearnaud/55a200fb22a4b3f54f4533fdf7ee07d1 to your computer and use it in GitHub Desktop.
sub vcl_backend_response {
if (bereq.url ~ "\.(jpe?g|png|gif|pdf|tiff?|css|js|ttf|woff2?|otf|eot|svg)$") {
set beresp.ttl = std.duration(beresp.http.age+"s",0s) + 24h;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment