Nginx: conditional "expires" directive

Igor Sysoev igor at
Tue Aug 16 18:23:07 UTC 2011

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

Igor Sysoev

16.08.2011, в 14:18, "somebi" <nginx-forum at> написал(а):

> Thanks. Now it's working. I guess my mistake was in additional quotes.
> Posted at Nginx Forum:,213841,213874#msg-213874
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list