Hello All,
I can’t seem to figure out how to put more than on condition in an IF
statement. Is this possible?
I thought this would work:
if ($request_uri ~* .(jpg|jpeg|gif|png|css)$) {
expires 1d;
}
if ($is_args) {
expires max;
break;
}
But it sets all URI’s with a query string to expire max, instead of just
those ending in (jpg|jpeg|gif|png|css).
Any ideas? Thanks in advance for your help.