vcl and cache-control header

Denis Ahrens denis at zeno.org
Tue Apr 24 16:48:39 CEST 2007


Hi

I have problems with the following vcl-script:

	if(req.http.Cache-Control == "max-age=0") {
		set obj.ttl = 0s;
		pass;
	}

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.

Is this a bug or am I doing something wrong?

Denis




More information about the varnish-dev mailing list