Cannot stop Varnish from caching 403 responses
Marinos Yannikos
mjy at geizhals.at
Thu Sep 8 09:57:23 CEST 2011
On 05.09.2011 15:48, Lars Jørgensen wrote:
> if (beresp.status >= 400) {
> return (hit_for_pass);
> }
>
> You can go lower than that, but I still want to cache redirects (3xx).
That worked great, thanks. We also don't want to cache redirects in many
cases, so we are using 300 now. We're still considering an exemption for
404 though.
Regards,
Marinos
More information about the varnish-misc
mailing list