|
Hi, Sorry that I did not elaborate this enough. Let me get into details: We are running a magento web shop with a varnish layer in front of it on a separate server. At some point, the applications has to tell Varnish that it cannot use cached content, this happens by the setting the following header:
In the default.vcl the following happens the following in the sub vcl_fetch method:
if (beresp.http.Set-Cookie ~ "NO_CACHE=") {
return (pass)
}
Since there are multiple set-cookie headers, varnish will only be able to analyze the first Set-Cookie header.
This means that if-condition above fails and that it will not return a "pass" causing the application to serve cached content while it shouldn't.
I have compiled the header vmod
![]() On 11/14/2011 11:58 AM, Kristian Lyngstol wrote: Hi, On Mon, Nov 14, 2011 at 09:42:59AM +0100, Kenny Deckers wrote:I'm having the following issue with "multiple set-cookie headers":(...) What issue? You are not saying anything about what you wan to accomplish. Your web server sends multiple set-cookie headers. I assume you entered the stars yourself. What are you trying to accomplish, and what have you actually tried with the header vmod? - Kristian ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ |
_______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

