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
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
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
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
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;
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
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 :
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:
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 =
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
10 matches
Mail list logo