Nginx: conditional "expires" directive

António P. P. Almeida appa at perusio.net
Tue Aug 16 18:39:38 UTC 2011


On 16 Ago 2011 19h23 WEST, igor at sysoev.ru wrote:

> No, your mistake was a "break" which stops processing before any
> "if" would run. Also it is better to use "map" to set value instead
> of "set/if".

Indeed, there were two errors. I overlooked the break right at the
top. There's also the expires 1y directive.

--- appa




More information about the nginx mailing list