Nginx Proxy/FastCGI Caching X-Accel-Expires 0 or Off ?

c0nw0nk nginx-forum at forum.nginx.org
Fri May 11 15:54:17 UTC 2018


Sergey Kandaurov Wrote:
-------------------------------------------------------
> > On 11 May 2018, at 04:30, c0nw0nk <nginx-forum at forum.nginx.org>
> wrote:
> > 
> > So in order for my web application to tell Nginx not to cache a page
> what
> > header response should I be sending ?
> > 
> > X-Accel-Expires: 0
> > X-Accel-Expires: Off
> > 
> > I read here it should be "OFF"
> >
> https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-
> accel-expires
> > 
> > But it does not mention if numeric value "0" has the same effect Nor
> does it
> > mention if the "off" value is case sensitive or not.
> 
> Wiki materials are updated by its users and thus may not always 
> contain up-to-date and correct information.
> 
> See reference documentation:
> http://nginx.org/r/proxy_cache_valid
> 
> -- 
> Sergey Kandaurov
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Thank you for the information and help :)

I am now using the "0" value and my header responses say "STALE" so it
appears to be working well.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279752,279759#msg-279759



More information about the nginx mailing list