Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 1 down vote accepted

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.

share|improve this answer
I'm using fastcgi_cache, I forgot. – ChocoDeveloper Jan 19 '13 at 14:02
Oh but I'm using it in a .php location, so I guess it won't affect static images. – ChocoDeveloper Jan 19 '13 at 14:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.