Pass 200 on 404

Jeffrey Taylor jefe78 at
Mon Feb 25 21:08:23 CET 2013

Hi all,

We're using Amazon Cloudfront(CF). The issue we've run into is that when CF
gets a 404, it caches that for ~5 minutes. What we want to do is have
Varnish(already part of our stack) pass a 200 to CF on a 404 event, but
only cache that '404' for ~1 minute. In doing so, we give ourselves 1
minute to recover from the 404 event on our stack, in doing so, we can keep
serving content 1 minute after, instead of 5 minutes because of CF.

How should I get started on this?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list