Does nginx cache (copy) my images?

ChocoDeveloper asked:

I’m using http public cache all over an images website to allow clients and anyone between the clients and my server (eg: cloudflare, isp, etc) to cache HTML, assets (js/css/icons), and images (the main content of the website). But I don’t want nginx to cache these images, because it will take too much space. I’m not sure whether it’s happening, I don’t know how to check.

So how do I check, and if it’s happening, how do I stop it, without also stopping client and proxies cache?

Note: I’m using nginx as web server with fastcgi, and not as a proxy

My answer:

If you haven’t explicitly set up nginx as a caching proxy, then it will not cache your images or other static content, but merely serve it from the filesystem.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.