Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created December 14, 2016 15:58
Show Gist options
  • Save ccapndave/0f7c2fe0ce8f0c39eb07518caad09a32 to your computer and use it in GitHub Desktop.
Save ccapndave/0f7c2fe0ce8f0c39eb07518caad09a32 to your computer and use it in GitHub Desktop.
vcl 4.0;
# Default backend definition. Set this to point to your content server.
backend default {
.host = "127.0.0.1";
.port = "3001";
}
sub vcl_backend_response {
if (beresp.http.Cache-Control == "no-cache") {
set beresp.ttl = 31556926s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment