VCL documentation

Poul-Henning Kamp phk at phk.freebsd.dk
Wed Sep 20 22:37:31 CEST 2006


In message <20060920194410.GB19935 at crusaders.no>, Trond Michelsen writes:
>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?

You should probably also do:

	sub vcl_recv {
		lookup;
	}


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at 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.



More information about the varnish-misc mailing list