Skip to content

Instantly share code, notes, and snippets.

@Coopeh
Created February 28, 2013 02:20
Show Gist options
  • Save Coopeh/5053659 to your computer and use it in GitHub Desktop.
Save Coopeh/5053659 to your computer and use it in GitHub Desktop.
Varnish ESI vcl_fetch
sub vcl_fetch {
set beresp.do_esi = true;
if (req.url ~ "header-esi.php"){
std.log("ESI found, don't cache, pass to nginx");
set client.identity = clusternginx;
return(hit_for_pass);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment