VCL documentation

Trond Michelsen trondmm-varnish at crusaders.no
Wed Sep 20 21:44:10 CEST 2006


On Wed, Sep 20, 2006 at 02:43:15PM +0000, Poul-Henning Kamp wrote:
> In message <20060920132240.GG13253 at crusaders.no>, Trond Michelsen writes:
>> I've just downloaded and installed varnish, and I was just wondering
>> if the VCL config language is documented somewhere, or if there are
>> any examples that I could use for inspiration.
> The main example right now is the default VCL code which you will
> find in the source file bin/varnishd/mgt_vcc.c.

Thanks.

So, if I want to cache absolutely everything that is requested through
the cache, no matter what the headers might say, I could write
something like this:

sub vcl_fetch {
    insert;
}

Would that work?

> The important thing to know which is not obvious, is that if
> you do not hit an "action" in for instance vcl_miss(), the
> default vcl_miss() function will be executed and will determine
> the action.

Ah, OK. 

-- 
  // Trond Michelsen
\X/  mike at crusaders.no



More information about the varnish-misc mailing list