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

Sergey Kandaurov pluknet at nginx.com
Fri May 11 10:17:55 UTC 2018


> 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



More information about the nginx mailing list