Case insensitive location

I'm still having no luck with it.
As I said before, when I use location ~* ^/card/, it just 404s all the time
unless I disable my cache.
Here is my cache code, I have no idea why it does this.
# Cache setup.
location ~* \.(jpg|jpeg|png|gif|ico|css|xml|js|woff)$ {
expires 30d;
root /home/site/public;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate,
proxy-revalidate";
}
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,249105,249224#msg-249224