Welcome! Log In Create A New Profile

Advanced

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

Posted by c0nw0nk 
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.

I am hoping case sensitivity does not matter.

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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sergey Kandaurov
Re: Nginx Proxy/FastCGI Caching X-Accel-Expires 0 or Off ?
May 11, 2018 12:20PM
> On 11 May 2018, at 04:30, c0nw0nk <[email protected]> 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@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sergey Kandaurov Wrote:
-------------------------------------------------------
> > On 11 May 2018, at 04:30, c0nw0nk <[email protected]>
> 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@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login