In my config file I use
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
access_log off;
expires 30d;
root /var/www;
}
However, I have a PHP script that generates a captcha image which does not have an ending. nginx does not display the image. What can I do to solve this?
Make it have an ending, or have it send image headers and catch those headers in Nginx.