Skip to content

Instantly share code, notes, and snippets.

@mpilar
Created May 12, 2017 17:18
Show Gist options
  • Save mpilar/6dfcf55698daf39ff33474b7d91beafb to your computer and use it in GitHub Desktop.
Save mpilar/6dfcf55698daf39ff33474b7d91beafb to your computer and use it in GitHub Desktop.
X-Cache VCL
sub vcl_deliver {
if (obj.hits > 0) {
set resp.http.X-Cache = "HIT";
} else {
set resp.http.X-Cache = "MISS";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment