Luca De Marinis Wrote:
-------------------------------------------------------
> On Mon, Jun 28, 2010 at 6:54 PM, bkirkbri wrote:
>
> > Is it possible to set Cache-Control / Expires
> headers for 404 responses
> > in Nginx?
>
> I believe that even if you do, user agents and
> intermediate caches /
> proxies may decide not to honour them, so it may
> be pointless.
> Regards
That's true in some cases, definitely. I'd be interested in a list of which browsers respect Cache-Control for non-200 repsonses...
But we might throw a reverse proxy cache in front of nginx, which would respect those headers and take load off the nginx machine. Check out http://degizmo.com/2010/03/25/why-you-should-upstream-cache-your-404s/
Best,
Brian