X-Accel-Expires passed or not?

TECK nginx-forum at nginx.us
Wed Apr 20 07:38:27 MSD 2011


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;

Thanks.

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




More information about the nginx mailing list