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 January 16th, 2004, 09:30 AM
Authorized User
 
Join Date: Nov 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default cache

Is it possible to automatically empty a machines internet cache when they log onto a site, an if so could you tell me how.

The reason i ask this is that recently i have done some updates of a web based system used within the factory. Some machines show these updates, however some of the machines only show the old screens.

Each computer is accessing the site via a central server.

Any help would be great, many thanks

 
Old January 16th, 2004, 09:56 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Cache control is not really %100. The browser has more control than the web pages (i.e. if the user sets the cache cleanup to never generally ASP can't override it). That being said the following two lines help clean up mot cache issues.

Response.Expires = -1
Response.CacheControl = "No-cache"

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

The internet cache is a function of the browser, not the machine. You don't have ANY control over that. You can however control your page's expiration as Yehuda describes above.

However, something important to remember with this: If the browser has already been to a page and has cached it, implementing the Response expiration isn't going to help because the browser is not going to see that new page until the old one expires and is thus removed. You would need to manually clear the browser's temp files on each machine, then your new page's "instant" expiration would work.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old January 22nd, 2004, 05:29 AM
Authorized User
 
Join Date: Nov 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok thanks for your help guys






Similar Threads
Thread Thread Starter Forum Replies Last Post
about using cache benordz ASP.NET 2.0 Basics 2 April 25th, 2008 09:19 AM
mysql cache pc2006 MySQL 1 March 26th, 2007 07:42 AM
Cache problem jeanzz83 ASP.NET 1.0 and 1.1 Basics 1 January 3rd, 2006 12:36 PM
Cache problem alton Classic ASP Basics 3 September 6th, 2004 12:37 PM





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