Welcome! Log In Create A New Profile


Re: X-Accel-Expires passed or not?

April 20, 2011 01:38AM
On Tue, Apr 19, 2011 at 11:38:27PM -0400, TECK wrote:
> Hi all,
> I was looking into fastcgi_cache settings, in Nginx.
> Is it required to pass the header X-Accel-Expires, in order for Nginx to
> cache the data, or do I have set only the fastcgi_no_cache and
> fastcgi_cache_bypass values?
> fastcgi_pass_header Set-Cookie;
> fastcgi_pass_header X-Accel-Expires; <-- not needed, IMO
> fastcgi_no_cache $cookie_cache;
> fastcgi_cache_bypass $cookie_cache;

No, X-Accel-Expires should not be passed.
fastcgi_pass_header passes a header line to a client, but not to
nginx itself.

Igor Sysoev

nginx mailing list
Subject Author Posted

X-Accel-Expires passed or not?

TECK April 19, 2011 11:38PM

Re: X-Accel-Expires passed or not?

Igor Sysoev April 20, 2011 01:38AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 112
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready