Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 25th, 2004, 02:12 AM
Authorized User
 
Join Date: Nov 2003
Location: , , .
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.

Reply With Quote
  #2 (permalink)  
Old February 25th, 2004, 10:26 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
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.
Reply With Quote
  #3 (permalink)  
Old February 25th, 2004, 10:52 PM
Authorized User
 
Join Date: Nov 2003
Location: , , .
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

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.