how to add Cache-Control: public to static files

Igor Sysoev is at
Tue Oct 6 12:04:33 MSD 2009

On Mon, Oct 05, 2009 at 10:35:13PM -0400, Chris Zimmerman wrote:

> add_header isn't used for rewriting the header. Currently nginx supports
> only "no-cache" and "max-age=###" values
> in "Cache-Control.

These values are affected by "expires" directive only.
You may add any Cache-Control values via add_header.

Igor Sysoev

More information about the nginx mailing list