PDA

View Full Version : IIS Caching


hotshot
2005-04-14, 21:05 PM
I have noticed that IIS caches pages. For example, if I run a stats report, and load it on my PC here, and then rerun and try to view it, I still get the old report. I have deleted my temp files etc, and finally figured out it was O/S related because if I restart IIS then the new report loads.

It does this when I am working on web pages as well, and same resolution, restart IIS and the revised page loads.

What can I do to stop this?

DXD
2005-04-15, 08:30 AM
You can either put in your HTML pages or ASP pages that the PAGE shouldn't be cached or expires in XX days or on XX day and time

OR

You can turn caching off in the IIS Admin for the website.

If you need specifics about this let me know. As I can't remember them off the top of my head. (to many things to remember)

RickH
2005-04-18, 14:30 PM
You can turn caching off in the IIS Admin for the website.

I haven't been able to figure this out either. Can you help?

DXD
2005-04-18, 14:42 PM
Are they HTM pages or ASP Pages?

HTM: Look in the IIS manager. Go to properties of a website and click on the HTTP Headers tab. There you can set all your pages expiration.

ASP: On the Home Page tab click configuration and there is a tab for Caching ASP pages.

You can also do this through HTML and through ASP instead of the IIS.

hotshot
2005-04-21, 16:07 PM
It is HTML pages.

I see where you can specify them to expire, is there any advantage/disadvantage to this? I guess bandwidth comes to mind, but what about processor use, etc?

DXD
2005-04-21, 16:20 PM
Are there certain pages you don't want cached or is it ALL of your pages. doing it through IIS ALL pages are affected.

http://www.i18nguy.com/markup/metatags.html go there to see about NO-CACHE

Either the browser is doing the cacheing or IIS is.

hotshot
2005-04-21, 16:37 PM
IIS is doing it and the code doesn't affect it.

DXD
2005-04-21, 16:47 PM
Then you'll have to make the change in IIS. As far as the processor load ramifications as far as I know they should be minimal if noticable at all.

hotshot
2005-04-25, 23:40 PM
Then you'll have to make the change in IIS. As far as the processor load ramifications as far as I know they should be minimal if noticable at all.


THX