varnish caching with jsessionid being set

Rodney Bizzell rbizzell at measinc.com
Wed Mar 22 17:19:09 CET 2017


Can you also add the set beresp.grace parameter as well right after the ttl
From: varnish-misc-bounces+rbizzell=measinc.com at varnish-cache.org [mailto:varnish-misc-bounces+rbizzell=measinc.com at varnish-cache.org] On Behalf Of Guillaume Quintard
Sent: Wednesday, March 22, 2017 11:29 AM
To: Jim Louis <jlouis at peoplenetonline.com>
Cc: varnish-misc <varnish-misc at varnish-cache.org>
Subject: Re: varnish caching with jsessionid being set

Sure, you can override them:

set vcl_backend_response {
    set beresp.ttl = 5m;
}

--
Guillaume Quintard

On Tue, Mar 21, 2017 at 4:11 PM, Jim Louis <jlouis at peoplenetonline.com<mailto:jlouis at peoplenetonline.com>> wrote:
Dridi,

Supposedly, nginx has the ability to ignore the caching headers. Does Varnish provide a similar mechanism?

Thanks,
Jim

On Mon, Mar 20, 2017 at 3:09 AM, Dridi Boukelmoune <dridi at varni.sh<mailto:dridi at varni.sh>> wrote:
On Fri, Mar 17, 2017 at 8:46 PM, Jim Louis <jlouis at peoplenetonline.com<mailto:jlouis at peoplenetonline.com>> wrote:
>
> Dridi,
>
> I must not be understanding your example on [2] as I'm still getting everything passed.

Hi Jim,

Thanks for letting me know, I will try to clarify this part.

> 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

The backend is telling Varnish, and ultimately the client, that the
response cannot be cached. Depending on your version of Varnish
it will indeed result in subsequent passed transaction.

> Also, was there a part 2 to that blog?

Part 2 is written, but still an early draft so not published yet.

Cheers,
Dridi



--
James Louis
Lead Systems Engineer

[Image removed by sender.]

4400 Baker Road, Minnetonka, MN 55343<br>
CELL 612.203.2631<tel:(612)%20203-2631>
TOLL FREE 888-346-3486 x 622<tel:(888)%20346-3486>  |  FAX 952-908-6129<tel:(952)%20908-6129>
http://www.peoplenetonline.com

PeopleNet is the leading provider of fleet mobility systems to the transportation industry, including truckload, LTL, private, and energy service fleets.

_______________________________________________
varnish-misc mailing list
varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



This email (including any attachments) may contain confidential information intended solely for acknowledged recipients. If you think you have received this information in error, please reply to the sender and delete all copies from your system. Please note that unauthorized use, disclosure, or further distribution of this information is prohibited by the sender. Note also that we may monitor email directed to or originating from our network. Thank you for your consideration and assistance. |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170322/d0163251/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD000.jpg
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170322/d0163251/attachment-0001.jpg>


More information about the varnish-misc mailing list