Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Stop caching images on a rewrite with NGINX

$
0
0
I randomly found a solution.

I used the following:

location ^~ /image {
rewrite ^/image/([a-zA-Z0-9_+]+)/([a-zA-Z0-9+]+)\.png$ /img/image.php?style=$1&user=$2 last;
expires epoch;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles