It's a good DIY, congratulations!by piggy - How to...
Sorry, this has been resolved by Piotr Sikora. Thanks a lot. see http://forum.nginx.org/read.php?2,39564by piggy - How to...
THANK YOU VERY MUCH! What an simple solution it is.by piggy - Nginx Mailing List - English
Thank you for your reply. I mean everything is ok before I limited .jpg and .gif to be cached. So I didn't write all configurations here. Then, I give the full version before and current for you to help me. # Version Ok # I visited http://www.test.com/1.gif, # and purge it by visiting, http://www.test.com/purge/1.gif # It's ok, show: Successful purge ... ##############################by piggy - Nginx Mailing List - English
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 shby piggy - How to...
And, how can I don't cache a path-like url ? i.e., http://www.test.com/ or http://www.test.com/path/by piggy - Nginx Mailing List - English
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 / {by piggy - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
![]() |