location ~* ^/static/.+\.(png|whatever-else)$ {
alias /var/www/some_static;
expires 24h;
}
location / {
# regular rules
}
Hand written, may contain mistakes.
If you want to extend the rules to match anything/something/static/*.png
just remove the ^
in the patten.