X-Accel-Expires passed or not?

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;


Posted at Nginx Forum:

On Tue, Apr 19, 2011 at 11:38:27PM -0400, TECK wrote:

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 S.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs