FRiCKLE Labs & yo.se pres. ngx_cache_purge

piggy nginx-forum at nginx.us
Wed Jun 16 17:28:46 MSD 2010


Thanks.

My English is not good and please forgive my bad grammer.

I want only .jpg and .gif be cached, so I wrote:

location ~ .*\.(jpg|gif)$ 
        {
                proxy_cache cache1;
                proxy_cache_valid 200 304 15m;
                proxy_cache_key $host$uri$is_args$args;
                proxy_pass http://backend;
        }

location /
        {
                proxy_pass http://backend;
        }

and here comes a problem: you can't purge any more, browser show: 404

Can you help me?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,39564,98939#msg-98939




More information about the nginx mailing list