RE: varnish caching problem
Hi, If I disable cookies on firefox, I am not able to log into plone. If I configured varnish to ignore cache as defined bellow. # sub vcl_recv { if (req.request == "GET" && req.http.cookie) { lookup; } lookup; } # I am not able to login into plone site using either firefox or Internet Explorer Please help me in resolving the issue Regards, Sridhar Raju PrimeSoft Solutions Inc Phone: 040-27762986/27762987 Skype ID: sridharsagi www.primesoftsolutionsinc.com -Original Message- From: Sridhar [mailto:srid...@primesoftsolutionsinc.com] Sent: Tuesday, July 28, 2009 8:45 PM To: 'Poul-Henning Kamp' Cc: 'varnish-misc@projects.linpro.no' Subject: RE: varnish caching problem Hi, If I disable cookies on firefox, I am not able to log into plone. If I configured varnish to ignore cache as defined bellow. # sub vcl_recv { if (req.request == "GET" && req.http.cookie) { lookup; } lookup; } # I am not able to login into plone site using either firefox or Internet Explorer Please help me in resolving the issue Sridhar Raju PrimeSoft Solutions Inc Phone: 040-27762986/27762987 Skype ID: sridharsagi www.primesoftsolutionsinc.com -Original Message- From: p...@critter.freebsd.dk [mailto:p...@critter.freebsd.dk] On Behalf Of Poul-Henning Kamp Sent: Tuesday, July 28, 2009 12:12 PM To: Sridhar Cc: varnish-misc@projects.linpro.no Subject: Re: varnish caching problem In message , "Sridhar" writes: >My Varnish is not showing cache hits while I run from firefox. Check if you send cookies, by default cookies diables caching. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: varnish akamai interaction
Quite a coincidence... We've moved some traffic /off/ of Akamai, but only today did we start stacking. I don't expect there to be any problems *EXCEPT* in the 304 response case -- currently Varnish strips the Expires and Cache-Control (among other) headers from 304 Not Modified responses, which could be problematic for browsers and Akamai alike. See ticket #529. Rogério Schneider wrote a patch which Tollef Fog Heen checked into trunk. A version of the patch ported to 2.0.4 is attached to that ticket, and has been stable in our production 2.0.4 environment for the last day or two. Cache and 304 behavior seems correct. However, it may depend on your Akamai config. We emit Expires, which we have Akamai use to control caching. Our default is to not cache in the absense of Expires and not touch any headers. Depending on your Akamai config, YMMV. Hope it helps, -- Ken On Jul 28, 2009, at 1:50 PM, Raymond Hall wrote: > Hi there, > > I'm wondering if anyone here has akamaized an already varinsh > accelerated website, and if so, what experiences did you get? > I'm especially interested in the Cache-Control, Expires, Last-Modified > headers interaction. > > regards, > Ray > > -- > Knowingly entering a Ponzi scheme can be rational, in the economic > sense, even at the last round of the scheme if a government will > likely bail out those participating in the Ponzi scheme. The IPAB > Posse > ___ > varnish-misc mailing list > varnish-misc@projects.linpro.no > http://projects.linpro.no/mailman/listinfo/varnish-misc ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Memory spreading, then stop responding
On Jul 28, 2009, at 3:09 PM, Rob S wrote: > Michael S. Fischer wrote: >> On Jul 28, 2009, at 2:35 PM, Rob S wrote: >>> Thanks Darryl. However, I don't think this solution will work in >>> our >>> usage. We're running a blog. Administrators get un-cached access, >>> straight through varnish. Then, when they publish, we issue a purge >>> across the entire site. We need to do this as there's various >>> bits of >>> navigation that'd need to be updated. I can't see that we can do >>> this >>> if we set obj.ttl. >>> >>> Has anyone any recommendations as to how best to deal with purges >>> like this? >> >> If you're issuing a PURGE across the entire site, why not simply >> restart Varnish with an empty cache? >> >> --Michael >> > Because Varnish is also working for other hosts which don't need > purging at the same time... My company gets around this madness by versioning its URLs. It works pretty well. --Michael ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Memory spreading, then stop responding
Michael S. Fischer wrote: > On Jul 28, 2009, at 2:35 PM, Rob S wrote: >> Thanks Darryl. However, I don't think this solution will work in our >> usage. We're running a blog. Administrators get un-cached access, >> straight through varnish. Then, when they publish, we issue a purge >> across the entire site. We need to do this as there's various bits of >> navigation that'd need to be updated. I can't see that we can do this >> if we set obj.ttl. >> >> Has anyone any recommendations as to how best to deal with purges >> like this? > > If you're issuing a PURGE across the entire site, why not simply > restart Varnish with an empty cache? > > --Michael > Because Varnish is also working for other hosts which don't need purging at the same time... Rob ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Memory spreading, then stop responding
On Jul 28, 2009, at 2:35 PM, Rob S wrote: > Thanks Darryl. However, I don't think this solution will work in our > usage. We're running a blog. Administrators get un-cached access, > straight through varnish. Then, when they publish, we issue a purge > across the entire site. We need to do this as there's various bits of > navigation that'd need to be updated. I can't see that we can do this > if we set obj.ttl. > > Has anyone any recommendations as to how best to deal with purges > like this? If you're issuing a PURGE across the entire site, why not simply restart Varnish with an empty cache? --Michael ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Memory spreading, then stop responding
Darryl Dixon - Winterhouse Consulting wrote: >> Darryl Dixon - Winterhouse Consulting wrote: >> Can anyone suggest why varnish is using more memory than it's allocated, and why varnishlog would stop returning any output? Varnishlog was writing to disk, so I can probably extract the end of that, if it's of use. >>> Hi Rob, >>> >>> There have been a few threads about this now on this mailing list. >>> Probably it relates to the use of purge_url in your VCL. Are you using >>> this function at all? >>> >>> regards, >>> Darryl >>> >> Darryl, >> >> Thanks for your reply. Yes we are using purge_url, but I was under the >> impression that since http://varnish.projects.linpro.no/changeset/3329, >> there wasn't a problem. I've not succeeded in finding the threads you >> mentioned in your email. Can you either point me at them, or let me >> know their conclusion? >> >> > > Hi Rob, > > See the thread concluding here (the solution to swap purge_url for > obj.ttl=0 is the correct one): > http://projects.linpro.no/pipermail/varnish-misc/2009-April/002743.html > > And also the thread concluding here: > http://projects.linpro.no/pipermail/varnish-misc/2009-June/002840.html > > regards, > Darryl Dixon > Winterhouse Consulting Ltd > http://www.winterhouseconsulting.com > > > Thanks Darryl. However, I don't think this solution will work in our usage. We're running a blog. Administrators get un-cached access, straight through varnish. Then, when they publish, we issue a purge across the entire site. We need to do this as there's various bits of navigation that'd need to be updated. I can't see that we can do this if we set obj.ttl. Has anyone any recommendations as to how best to deal with purges like this? Rob ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Memory spreading, then stop responding
> Darryl Dixon - Winterhouse Consulting wrote: >>> >>> Can anyone suggest why varnish is using more memory than it's >>> allocated, >>> and why varnishlog would stop returning any output? Varnishlog was >>> writing to disk, so I can probably extract the end of that, if it's of >>> use. >>> >>> >> >> Hi Rob, >> >> There have been a few threads about this now on this mailing list. >> Probably it relates to the use of purge_url in your VCL. Are you using >> this function at all? >> >> regards, >> Darryl > Darryl, > > Thanks for your reply. Yes we are using purge_url, but I was under the > impression that since http://varnish.projects.linpro.no/changeset/3329, > there wasn't a problem. I've not succeeded in finding the threads you > mentioned in your email. Can you either point me at them, or let me > know their conclusion? > Hi Rob, See the thread concluding here (the solution to swap purge_url for obj.ttl=0 is the correct one): http://projects.linpro.no/pipermail/varnish-misc/2009-April/002743.html And also the thread concluding here: http://projects.linpro.no/pipermail/varnish-misc/2009-June/002840.html regards, Darryl Dixon Winterhouse Consulting Ltd http://www.winterhouseconsulting.com ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
varnish akamai interaction
Hi there, I'm wondering if anyone here has akamaized an already varinsh accelerated website, and if so, what experiences did you get? I'm especially interested in the Cache-Control, Expires, Last-Modified headers interaction. regards, Ray -- Knowingly entering a Ponzi scheme can be rational, in the economic sense, even at the last round of the scheme if a government will likely bail out those participating in the Ponzi scheme. The IPAB Posse ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Configuring varnish for many different domains with similar content
See the FAQ: http://varnish.projects.linpro.no/wiki/FAQ#IhaveasitewithmanyhostnameshowdoIkeepthemfrommultiplyingthecache If your backends need to see the original hostname, you can unrewrite it in vcl_miss(). -- Ken On Jul 11, 2009, at 3:54 AM, Hip Hydra wrote: > Hi, I'm running a network of web proxies, where the domain of each > proxy > is different, but any websites a user goes to will have the same > content > regardless of the proxy domain. > > For example: > http://proxy1.com/visit.php?site=22abc862ce4 > http://proxy2.com/visit.php?site=22abc862ce4 > http://proxy3.com/visit.php?site=22abc862ce4 > ... > > These URLs all go to the same site. However, proxy1.com, proxy2.com, > etc. have different base files. Only requests that go through > visit.php > are the same if the site variable is the same. > > Is there any way I can optimize Varnish to cache the data files more > effectively? > > Many thanks! > John > ___ > varnish-misc mailing list > varnish-misc@projects.linpro.no > http://projects.linpro.no/mailman/listinfo/varnish-misc ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Memory spreading, then stop responding
Darryl Dixon - Winterhouse Consulting wrote: >> >> Can anyone suggest why varnish is using more memory than it's allocated, >> and why varnishlog would stop returning any output? Varnishlog was >> writing to disk, so I can probably extract the end of that, if it's of >> use. >> >> > > Hi Rob, > > There have been a few threads about this now on this mailing list. > Probably it relates to the use of purge_url in your VCL. Are you using > this function at all? > > regards, > Darryl Darryl, Thanks for your reply. Yes we are using purge_url, but I was under the impression that since http://varnish.projects.linpro.no/changeset/3329, there wasn't a problem. I've not succeeded in finding the threads you mentioned in your email. Can you either point me at them, or let me know their conclusion? Thanks, Rob ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
RE: varnish caching problem
Hi, If I disable cookies on firefox, I am not able to log into plone. If I configured varnish to ignore cache as defined bellow. # sub vcl_recv { if (req.request == "GET" && req.http.cookie) { lookup; } lookup; } # I am not able to login into plone site using either firefox or Internet Explorer Please help me in resolving the issue Sridhar Raju PrimeSoft Solutions Inc Phone: 040-27762986/27762987 Skype ID: sridharsagi www.primesoftsolutionsinc.com -Original Message- From: p...@critter.freebsd.dk [mailto:p...@critter.freebsd.dk] On Behalf Of Poul-Henning Kamp Sent: Tuesday, July 28, 2009 12:12 PM To: Sridhar Cc: varnish-misc@projects.linpro.no Subject: Re: varnish caching problem In message , "Sridhar" writes: >My Varnish is not showing cache hits while I run from firefox. Check if you send cookies, by default cookies diables caching. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 p...@freebsd.org | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Configuring varnish for many different domains with similar content
Hi, I'm running a network of web proxies, where the domain of each proxy is different, but any websites a user goes to will have the same content regardless of the proxy domain. For example: http://proxy1.com/visit.php?site=22abc862ce4 http://proxy2.com/visit.php?site=22abc862ce4 http://proxy3.com/visit.php?site=22abc862ce4 ... These URLs all go to the same site. However, proxy1.com, proxy2.com, etc. have different base files. Only requests that go through visit.php are the same if the site variable is the same. Is there any way I can optimize Varnish to cache the data files more effectively? Many thanks! John ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
varnish + if-none-match
I just saw that If-None-Match support was added to trunk today. Does anyone have an example of how to enable/configure for this as I would be curious to test this out. Thanks. --Jauder ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc