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

After an update of our website ( running on Apache ) we get some issues with .js files images ect ... It seems that old files were mixed up with new one. My question is how cache works ? Do we have to restart Apache each times we perform an update ? How Firefox know / handle new files from a website ? Thanks!

share|improve this question

The caching mechanism is different for every browser. If you would like more information regarding browser caching, I would suggest a post to Superuser.

For Apache, there is not native caching functionality within the server for static content.

share|improve this answer
How Apache knows about new files if we don't restart it? Same question for Firefox, how it knows that remote files changed? – Eno Jul 15 '10 at 14:12
Apache serves the files like any other file transfer mechanism, it isn't anything special in the case of the actual transfer of static content. I suspect Firefox uses the Last-Modified header that Apache provides, which includes the timestamp for the last time the content changed. – Warner Jul 15 '10 at 14:30

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.