Pass 200 on 404

Hugo Cisneiros (Eitch) hugo.cisneiros at gmail.com
Mon Feb 25 21:28:26 CET 2013


On Mon, Feb 25, 2013 at 5:22 PM, Jeffrey Taylor <jefe78 at gmail.com> wrote:

> We only actually want to do this with our video segments. The reason is,
> if our streaming box or our ingress box crash, we start generating 404's to
> CF. The second CF gets a 404, we're screwed for ~5 minutes. That's a
> lifetime for live video.
>
> CF allows TTLs on all types of files/rules, but a 404 is a solid 5 minutes
> cached by them.
>
> I'm open to other ideas!
>

Ah, if it's only these items, I think it's OK. I thought that replying 200
to everything should confuse crawlers, robots, users, and so on :-)

Give the beresp.status and vcl_error a try. I used this a lot to generate
temporary redirects (301) instead of 200 or 404.

-- 
[]'s
Hugo
www.devin.com.br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130225/404398fd/attachment.html>


More information about the varnish-misc mailing list