[Varnish] #1058: Multiple Set-Cookie Headers not being merged
Varnish
varnish-bugs at varnish-cache.org
Thu Nov 10 17:03:40 CET 2011
#1058: Multiple Set-Cookie Headers not being merged
---------------------+------------------------------------------------------
Reporter: KennyDs | Type: defect
Status: new | Priority: high
Milestone: | Component: varnishd
Version: 3.0.0 | Severity: major
Keywords: |
---------------------+------------------------------------------------------
When a request with Multiple Set-Cookie headers is sent (like the one
below), Varnish will only have the first "Set-Cookie" line in the sub
vcl_fetch method of the headers.
In the example pasted below the "EXTERNAL_NO_CACHE=1" info is used to tell
varnish to retrieve a page from the backend instead of from the cache, but
this fails...
{{{
root at magento-development:/# curl -I http://XXXXXXXXX
[1] 5332
root at magento-development:/# HTTP/1.1 200 OK
Date: Thu, 10 Nov 2011 14:49:56 GMT
Server: Apache/2.2.9 (Debian) PHP/5.2.6-1+lenny13 with Suhosin-Patch
X-Powered-By: PHP/5.2.6-1+lenny13
Set-Cookie: store=scfr; expires=Fri, 09-Nov-2012 14:49:56 GMT; path=/;
domain=XXXXXXXXX; httponly
Set-Cookie: frontend=9ac04aa3912eb78eb79f98dd531f7ba6; expires=Thu, 10 Nov
2011 15:49:57 GMT; path=/; domain=XXXXXXXXX; HttpOnly
Expires: Thu, 10 Nov 2011 16:49:57 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma: no-cache
Set-Cookie: EXTERNAL_NO_CACHE=1; expires=Thu, 10-Nov-2011 15:49:57 GMT;
path=/; domain=XXXXXXXXX; httponly
X-Cache-Debug: 1
Vary: Accept-Encoding,User-Agent
Content-Type: text/html; charset=UTF-8
}}}
--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1058>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list