Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?)

Thanks.

share|improve this question
1  
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
1  
Nginx caches nothing by default. –  VBart Aug 9 '13 at 18:33

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.