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.

I have an IIS web server on my local network for development purposes, and I want to disable all caching mechanisms. IIS seems to be caching everything, even when I disable output caching like so:

Output Caching window

I have set the above at the root of my webserver.

The weird thing is that I need to request a file a few times before it starts caching it.

I know that it can't be a client side related issue as I checked that they were requesting a fresh copy from the server each time.

Example of what I did:

  1. I create a HTML file
  2. I navigate to the above HTML file on the server (e.g. http://example/path/to/file/test.html) in my browser, and refresh the page a few times.
  3. I change the HTML file on the disk
  4. I refresh the page in my browser again, but I still see the old HTML file, and not the new one that I had saved to the disk in step 3.

IIS version: 7.5, Windows version: Windows 7

Can anyone help me please?

share|improve this question
    
Are you sure it's not the client that's doing the caching here. Have you tried clearing the client browser cache after you change the file on the web server? –  Chris McKeown Jul 23 '13 at 11:46
    
@ChrisMcKeown Yes, I am sure that the problem is server side - I have cleared the cache in between page loads. –  starbeamrainbowlabs Jul 23 '13 at 11:57
    
Any proxy servers in between the client and the server that might be doing the caching? –  Chris McKeown Jul 23 '13 at 11:59
    
You should be able to look at the headers to see what it's throwing at you. If you get a 304 Not Modified response then something in between is caching your results. –  Nathan C Jul 23 '13 at 12:44
    
@ChrisMcKeown No, I am on a local network with no proxies in sight. –  starbeamrainbowlabs Jul 23 '13 at 14:28

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.