Am 08.08.2018 um 14:14 schrieb Dridi Boukelmoune: >> Yes but i'm sorry i'm unable to provide code. Is there any way to use >> something like a loop or recursion? In that case i would be able to >> modify a single set-cookie header like we need it. > > A "foreach" construct would indeed help for the case of multiple > headers and it has been discussed in the past but to no avail. It's > not trivial to add this to VCL and ensure soundness. > >> I also wasn't able to solve it by mod_headers. > > I'm not really surprised. This would require a VMOD of its own. > > Did you look at alternatives such as vmod-cookie and vmod-cookieplus? > > https://github.com/varnish/varnish-modules/blob/master/docs/vmod_cookie.rst#vmod_cookie > https://docs.varnish-software.com/varnish-cache-plus/vmods/cookieplus/#description > > Maybe one of those provides enough capabilities for what you need to do.
Thanks again. Sadly it seems they do not help. The Problem is: 1.) there are multiple set-cookies headers from the backend 2.) the vcl than uses multiple regsuball to modify them 3.) the multiple set-cookies headers have to be part of the response in the same order as before except for those who are empty after the regsuball ;-( very ugly. Stefan > > Dridi > _______________________________________________ varnish-misc mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
