In message <[EMAIL PROTECTED]>, Denis Ahrens writes
:
>Hi
>
>I have problems with the following vcl-script:
>
> if(req.http.Cache-Control == "max-age=0") {
> set obj.ttl = 0s;
> pass;
> }
Guys, when you quote VCL code, please also tell us which
function you do this in...
>With this snippet in vcl-hit EVERY obj will get fetched (if there is
>a Cache-Control header or not). Even when I change the code to
>
> if(req.http.Cache-Control == "thiscanbeneverfound") {
> set obj.ttl = 0s;
> pass;
> }
>
>EVERY obj is fetched from the backend.
Sounds bogus, can you please enable the vcl_trace parameter
and send me a varnishlog -o output ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-dev mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-dev