Re: Frontend caching to multiple sites

2008-11-05 Thread Alecs Henry
Hi Espen, Thanks for the answer! Is there a way to accomplish this using different VCLs? I ask it because I'm trying to figure out a way to make it automatic. As in if I have a new customer, I'd just fill out a form (with the customer details like domain name, backend server, other

TCP_HIT header

2008-11-05 Thread Alecs Henry
Hi guys, Is there a variable that I can print on the response header that will give me the cache lookup result such as TCP_HIT or TCP_MISS? Thanks!! Alecs ___ varnish-misc mailing list varnish-misc@projects.linpro.no

Re: TCP_HIT header

2008-11-05 Thread Alecs Henry
Hi Per, Thanks for the reply! The issue here is not how to add the header, that is OK, I can do it just fine (even added the Foo: bar header just for the fun of it!). The problem is WHAT variable I can use that contains that information (MISS or HIT). Is there more documentation on the variables

Re: TCP_HIT header

2008-11-05 Thread Per Buer
Hi. As I said. Add two different headers. One you add in vcl_hit and one (preferably a different one) in vcl_miss. You need no variables. The code in vcl_hit will be run for a hit and vcl_miss will be run for a miss. Check out the getting started guide, the FAQ and the VCL-page on Wiki if you

Re: TCP_HIT header

2008-11-05 Thread Alecs Henry
Hi Per, Here's what I got: - vcl.load test /usr/local/etc/varnish/configs/test.vcl 106 267 *Variable 'obj.http.X-Cache' not accessible in method 'vcl_miss'.* At: (/usr/local/etc/varnish/configs/test.vcl Line 62 Pos 13) set obj.http.X-Cache = TCP_MISS from server.ip;

Inspect Request bodies?

2008-11-05 Thread Tim Kientzle
Under certain circumstances, I want to inspect the body of a POST request at the proxy cache. It don't see any hooks for this in the current Varnish 2.0.1, but I've skimmed the source and it looks feasible: * I'll need code to actually read and store the POST body in memory (including

Re: Frontend caching to multiple sites

2008-11-05 Thread rafailowski
Hi, For change vcl on the fly, just do: # varnishadm -T 127.0.0.1:33222 vcl.load vcl_name /path/to/your/vcl/varnish.vcl also look at : vcl.load configname filename vcl.inline configname quoted_VCLstring vcl.use configname vcl.discard configname vcl.list vcl.show configname or if you want :

Re: Inspect Request bodies?

2008-11-05 Thread Poul-Henning Kamp
In message [EMAIL PROTECTED], Tim Kientzle wri tes: * I'll need code to actually read and store the POST body in memory (including updates to the PASS handler and other places to use the in-memory data when it's available) We sort of have this as point 15 on our shoppinglist:

Re: TCP_HIT header

2008-11-05 Thread JT Justman
Alecs Henry wrote: Hi Per, Here's what I got: - vcl.load test /usr/local/etc/varnish/configs/test.vcl 106 267 *Variable 'obj.http.X-Cache' not accessible in method 'vcl_miss'.* At: (/usr/local/etc/varnish/configs/test.vcl Line 62 Pos 13) set obj.http.X-Cache =

Re: Inspect Request bodies?

2008-11-05 Thread Tim Kientzle
Thanks, Poul-Henning! These are exactly the hints I needed. Agree completely about it being controllable in VCL; my own environment has a mix of requests of widely-varying sizes and I certainly don't want this for large uploads. Tim On Nov 5, 2008, at 11:37 AM, Poul-Henning Kamp wrote: In