Setting headers for negative caching
bkirkbri
nginx-forum at nginx.us
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
http://degizmo.com/2010/03/25/why-you-should-upstream-cache-your-404s/
Best,
Brian
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,103267,103933#msg-103933
More information about the nginx
mailing list