X-Accel-Expires passed or not?

Igor Sysoev igor at sysoev.ru
Wed Apr 20 09:37:50 MSD 2011

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

More information about the nginx mailing list