tags:

views:

2696

answers:

4

For some magical reason ii6 started to cache pages on the server. Even if I remove the page, it is still displayed. I tried to follow couple suggestions but no luck. That's what I did so far:

  1. Deleted \WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files
  2. Unchecked 'cache ISAPI extensions' in the IIS configuration.
  3. Added 'Cache-Control no-cache' to HTTP headers in properties.
  4. Tried to create the page that clear the cache http://www.dotnet247.com/247reference/msgs/13/67641.aspx

Update: also tried to disable asp cache http://stackoverflow.com/questions/103158/iis-asp-caching But the files in v2.0.50727\Temporary ASP.NET Files are still created

If anybody has other suggestions, please share.

Thanks.

A: 

Did you try restarting the IIS server to see if that stops it from displaying? If it doesn't, then it might not be a caching issue.

I believe restarting the server is supposed to clear the cache.

Bit Destroyer
Yes, I restarted iis after each change
Bogdan Kanivets
A: 

Maybe the problem isn't the IIS, but a web proxy between your browser and your web server caching the page?

Or a wrong DNS settings pointing to another server which holds a copy of that web/page? You could also look on the same IIS if there is another web configured and host headers got mixed up, making you test on the wrong web.

splattne
A: 

I might just say the obvious here but have you tried recycling the application pool?

DrJokepu
A: 

Thanks for replies guys.

I figured out that it wasn't the caching issue. I didn't cleared out Bin folder and the compiled version of the page with extension .compiled was seating there all the time. I don't what changed this time, but I followed the same process like 100 times before and copied files on top without clearing Bin.

I should be more accurate with such things.

Bogdan Kanivets