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've got a weird problem with my web server.

I have a page that creates a PDF file and a button to send that same file as an attachment in an email.

So I hit create, then press send, create, then press send. The file name & location on the server is the same, but the contents change.

The thing is it frequently ends up sending the previous version even though it's over-written and no longer exists on the server. If I wait 10-20 minutes then it usually sends the correct file.

If I view the file in the browser it shows the latest version, even though it stills sends the old one in emails.

So I think it must be some sort of caching issue, does anyone know what I should change in IIS that could fix this.

share|improve this question

You can try disabling Output Caching in IIS 7. Refer Configure IIS 7 Output Caching and Caching. There is a small troubleshooting section at the end of the first link, please refer that as well.

share|improve this answer

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.