Skip to content

Instantly share code, notes, and snippets.

@ccapndave
Created November 8, 2016 07:46
Show Gist options
  • Save ccapndave/746a7dec071121b1c8af04e91b3c4764 to your computer and use it in GitHub Desktop.
Save ccapndave/746a7dec071121b1c8af04e91b3c4764 to your computer and use it in GitHub Desktop.
# Default backend definition. Set this to point to your content server.
backend default {
.host = "127.0.0.1";
.port = "3001";
}
# This forces us to cache origin responses forever (since we are manually invalidating the cache)
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