Skip to content

Instantly share code, notes, and snippets.

@smerrill
Created May 28, 2010 14:52
Show Gist options
  • Save smerrill/417241 to your computer and use it in GitHub Desktop.
Save smerrill/417241 to your computer and use it in GitHub Desktop.
sub vcl_deliver {
if (obj.hits > 0) {
set resp.http.X-Cache = "HIT";
} else {
set resp.http.X-Cache = "MISS";
}
return (deliver);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment