Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 25th, 2004, 02:12 AM
Authorized User
 
Join Date: Nov 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP cache & IIS setting

Dear all,

I found my IIS web server cached some ASP files and it seems not to be flushed for a long time.

For example:
When I use an asp file named test1.asp, once it is called from web browser, the web server will cache it indefinitely even if I change it to another file name (e.g. test2.asp)!

Finally, I've to disable the option "Do not cache ASP file" in IIS. Is it a tradeoff? Actually, one thing I worry is the CPU utilization if I disabled this option. Any comment or idea?

Thanks in advance.

 
Old February 25th, 2004, 10:26 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Are you sure the problem is IIS caching and not browser caching? If you change the file on the server (or remove it as is the case when you renamed the file) IIS should refresh itself and serve up an error for the file you renamed, or the updated version of a changed file. Double check that you aren't getting browser caching. Quickest way to test that usually works is to use Shift-Refresh (in IE and Netscape at least). This will tell the browser to re-request the files for that page.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old February 25th, 2004, 10:52 PM
Authorized User
 
Join Date: Nov 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear Peter,

I'm quite sure that is not caused by browser's caching since I've purged the browser's cached files and refreshed the page each time when I test.

The problem is solved after I've chosen the option "Do not cache ASP file" in IIS. In addition, the asp cached file will be flushed after I've restarted the IIS service (i.e. inetinfo.exe).

Alan






Similar Threads
Thread Thread Starter Forum Replies Last Post
Cache Mechanism in Different IIS / FE - BO pbernardo01 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 6 August 3rd, 2007 01:05 PM
Setting up IIS dfrancis BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 12 November 5th, 2006 03:36 PM
Compilation Error with ASP.Net 2.0 & IIS 5.1 gmitchell7 ASP.NET 2.0 Basics 0 April 17th, 2006 04:52 PM
IIS setting up question zhengfengyang Dreamweaver (all versions) 4 March 7th, 2006 09:21 PM
Setting up Virtual Dir in IIS dsuratman ASP.NET 1.0 and 1.1 Basics 4 June 20th, 2005 07:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.