Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is it possible to configure nginx to never cache certain files? I have two files on the root directory, index.html and list.json, and I want to disable caching for them completely. Can this be done by adding cache control headers?

(I'm also wondering does nginx cache static files by default?)


share|improve this question
You have read RFC 2616, right? – Michael Hampton Aug 9 '13 at 18:01
Nope, sorry to say. – ddario Aug 9 '13 at 18:06
Nginx caches nothing by default. – VBart Aug 9 '13 at 18:33

Your Answer


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

Browse other questions tagged or ask your own question.