Multiple Set-Cookie Headers

Kenny Deckers kennyds at ac-systems.com
Wed Nov 16 10:15:50 CET 2011


Hi,

- I installed Varnish 3.0.1 from source
- I installed libvmod-header (https://github.com/KristianLyng/libvmod-header
- I modified the default.vcl vcl_fetch method:
     beresp.http.Set-Cookie ~ "NO_CACHE="
     replaced by
     header.get(beresp.http.Set-Cookie, "NO_CACHE=")

If there is anything else please let me know. If you want us to have a 
look at it please let me know so I can get back to you.

Regards,/
Kenny
/


On 11/16/2011 10:09 AM, Jaap van Arragon wrote:
> Hi Kenny,
>
> We've had the same problem. The only solution we came up, because we 
> didn't had a lot of time, was to adjust the application ;-(
>
> So I am very curious to your thread and the solution off it.
>
> Regards,
> Jaap
>
>
> On 11/14/11 2:19 PM, "Kenny Deckers" <kennyds at ac-systems.com> wrote:
>
>       Hi,
>
>      Yes that is correct. if the "Set-Cookie: EXTERNAL_NO_CACHE=1"
>     header is set the response should be "passed".
>      Since Varnish can only analyze the first "Set-Cookie" header and
>     the "EXTERNAL_NO_CACHE=1" is present in one of the following
>     headers it will not see it and I can't have it 'pass' the response.
>
>      Regards,
>      Kenny
>
>
>
>
>      On 11/14/2011 01:51 PM, Roberto O. Fernández Crisial wrote:
>
>
>         Hi,
>
>
>
>         I think Kenny's issue is that Varnish could be caching
>         Set-Cookie response and send cached object to all users with
>         those Set-Cookie headers (like any session).
>
>
>
>         I think Kenny should pass any "Set-Cookie:
>         EXTERNAL_NO_CACHE=1" response.
>
>          Roberto O. Fernández Crisial
>          @rofc
>         *
>         *
>          On Mon, Nov 14, 2011 at 7:58 AM, Kristian Lyngstol
>         <kristian at varnish-software.com> 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
>
>              _______________________________________________
>              varnish-misc mailing list
>             varnish-misc at varnish-cache.org
>             https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>
>
>
>
>         ______________________________________________________________________
>          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
>     varnish-misc at varnish-cache.org
>     https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111116/69368b7b/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: business_card.jpg
Type: image/jpeg
Size: 25873 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111116/69368b7b/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 25873 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20111116/69368b7b/attachment-0003.jpe>


More information about the varnish-misc mailing list