[Varnish] #267: Fix ESI If-Modified-Since bug
Varnish
varnish-bugs at projects.linpro.no
Thu Jul 3 01:09:45 CEST 2008
#267: Fix ESI If-Modified-Since bug
----------------------+-----------------------------------------------------
Reporter: sky | Owner: phk
Type: defect | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords:
----------------------+-----------------------------------------------------
We need to unset the If-Modified-Since header, otherwise the underlying
ESI object might not be rendered.
{{{
Index: bin/varnishd/cache_vrt_esi.c
===================================================================
--- bin/varnishd/cache_vrt_esi.c (revision 2877)
+++ bin/varnishd/cache_vrt_esi.c (working copy)
@@ -777,6 +785,7 @@
http_SetH(sp->http, HTTP_HDR_URL, eb->include.b);
if (eb->host.b != NULL) {
http_Unset(sp->http, H_Host);
+ http_Unset(sp->http, H_If_Modified_Since);
http_SetHeader(sp->wrk, sp->fd, sp->http,
eb->host.b);
}
sp->step = STP_RECV;
}}}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/267>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list