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.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.