Web GUI for varnish
As an early christmas gift, here is a snapshot of the web GUI being developed for the 2.1 release: http://varnish.projects.linpro.no/wiki/WebGui It is not 100% finished (saving state and security being the major issues and the code needs some cleaning), but I hope people can test and play with it and give some input to the final version due in february. You MUST read the README file before using it, as it will describe it all. WARNING: This is, as mentioned, not finished, so don't use it on anything critical, as the VCL and parameters might be overwritten without warning. Petter, ready for the holidays ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
What to do when the backend sends no caching information?
Hi All, In testing varnish in different situations, I came accross a backend that sends no caching information in its responses, no Expires, cache-control or anything. Ok, I thought, I'll just set the TTL on that object (namely an html page) in VCL. Well, turns out varnish may be setting the ttl all right (I do it in vcl_fetch, but frankly there really is no way to see if it is set correctly or not! or is there?) but the page always gets a PASS, never a HIT. Age: is set to 0 by varnish. Thanks for all the help! Alecs ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Backend response
Hi! Is there a place where I can alter the backend response before it is inserted into the cache? Thanks! Alecs ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Varnishncsa
Alecs Henry alecshe...@gmail.com writes: What about cookies? Can varnish log cookie values? Or does it fit in the same problem as the first message? Varnish can and does log cookies. See the varnishlog(1) man page. DES -- Dag-Erling Smørgrav - d...@des.no ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: What to do when the backend sends no caching information?
Hi, Alecs Henry wrote: Well, turns out varnish may be setting the ttl all right (I do it in vcl_fetch, but frankly there really is no way to see if it is set correctly or not! or is there?) but the page always gets a PASS, never a HIT. Age: is set to 0 by varnish. The client probably sends a cookie. When varnish sees a cookie it does a pass. Please see the FAQ on notes on how to deal with this. Per. -- http://linpro.no/ | http://redpill.se/ signature.asc Description: OpenPGP digital signature ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Varnishncsa
Thanks Dag, I must have missed it! Alecs On Fri, Dec 12, 2008 at 7:08 PM, Dag-Erling Smørgrav d...@des.no wrote: Alecs Henry alecshe...@gmail.com writes: What about cookies? Can varnish log cookie values? Or does it fit in the same problem as the first message? Varnish can and does log cookies. See the varnishlog(1) man page. DES -- Dag-Erling Smørgrav - d...@des.no ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: Backend response
Hi Per, I'm looking into changing the headers all right! Where do I do that in VCL? I wanted to try to set some cache control headers before the object was put into varnish cache. Does that even make sense? Thanks! Alecs On Fri, Dec 12, 2008 at 7:20 PM, Per Buer pe...@linpro.no wrote: Alecs Henry wrote: Hi! Is there a place where I can alter the backend response before it is inserted into the cache? You can remove, add and alter headers - but there isn't much you can do to the content. Except to ESI, process it, I guess. Per. -- http://linpro.no/ | http://redpill.se/ ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc
Re: What to do when the backend sends no caching information?
Hi Per, I'm actually using the cookies in the cache (using the information provided on the website -- set req.hash += req.http.cookie;) and it works just fine! One thing that the backend does is vary on user-agent, not only content-encoding (I've removed the UA vary on the response, though). So looking into varnishlog I can see the pass, even after the hash is shown correctly. Any pointers? THanks! Alecs On Fri, Dec 12, 2008 at 7:21 PM, Per Buer pe...@linpro.no wrote: Hi, Alecs Henry wrote: Well, turns out varnish may be setting the ttl all right (I do it in vcl_fetch, but frankly there really is no way to see if it is set correctly or not! or is there?) but the page always gets a PASS, never a HIT. Age: is set to 0 by varnish. The client probably sends a cookie. When varnish sees a cookie it does a pass. Please see the FAQ on notes on how to deal with this. Per. -- http://linpro.no/ | http://redpill.se/ ___ varnish-misc mailing list varnish-misc@projects.linpro.no http://projects.linpro.no/mailman/listinfo/varnish-misc