Setting headers for negative caching

bkirkbri nginx-forum at
Wed Jun 30 19:45:12 MSD 2010

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


Posted at Nginx Forum:,103267,103933#msg-103933

More information about the nginx mailing list