varnish caching with jsessionid being set

Jim Louis jlouis at
Fri Mar 17 20:46:15 CET 2017


I must not be understanding your example on [2] as I'm still getting
everything passed.

The BereqHeader in varnishlog -b shows:
BereqHeader    Cookie: JSESSIONID=4A1158EB11C9E93D6AD2A101BB9FA204;
pfmhelp=1; _ga=GA1.2.1694534677.1489779146;
TrackJS=f2465051-cb66-4cfa-8a47-5c7a5d07aab4; navigation=520533110%7C4130

and I'm seeing:
BerespHeader   Cache-Control: no-cache, no-store, must-revalidate
BerespHeader   Pragma: no-cache

Also, was there a part 2 to that blog?


On Thu, Mar 16, 2017 at 7:56 AM, Dridi Boukelmoune <dridi at> wrote:

> On Wed, Mar 15, 2017 at 6:30 PM, Jim Louis <jlouis at>
> wrote:
> >
> > Hello,
> >
> > I'm fairly new to varnish and have used it successfully in the past.
> Here they would like to use it but they have jsessionid tracking thru
> multiple VIPs. It seems that these jsessionids are being called cookies and
> I'm not able to cache anything.
> >
> > Is there a way to use the jsessionids and accomplish the caching?
> Hello,
> Yes, there is. This is by far my "favorite" topic [1] so I wrote a
> blog post [2] about it. I would recommend carefulness and a solid
> understanding of HTTP and cookies first. It also depends a lot on
> whether your backend speaks proper HTTP and won't (mis)lead
> Varnish to do TheWrongThing(tm).
> Cheers,
> Dridi
> [1] just in case it wasn't clear, it's not
> [2]
> caching-vs-cookies

*James Louis*
*Lead Systems Engineer*

4400 Baker Road, Minnetonka, MN 55343<br>
CELL 612.203.2631
TOLL FREE 888-346-3486 x 622  |  FAX 952-908-6129

PeopleNet is the leading provider of fleet mobility systems to the
transportation industry, including truckload, LTL, private, and energy
service fleets.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list