Solved

Two problesm - Project references and pages not expiring

Posted on 2003-11-07
4
238 Views
Last Modified: 2013-12-24
I have three  problems:
   1.I have searched the manuals, but do not see what I should check under project references in regard to Visual InterDev, can someone tell what should be checked??

   2. I am having a problem with my pages expiring. I have at the beginning of each page, (before the incude statement for ado and the html tag, I do not issue a response.flush etc.). I have made sure my history folder is dumped and my cache is dumped before testing but it does not matter. It simply wouldn't expire the pages, and I am kinda getting desperate here.
Below is the  inserted the code (I am using server-side coding):

Response.Buffer = True
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Expires", "0"

yet, my pages do not expire as expected. I have tried with IE 5.5 and up, tried it with WIn98, Wint2000, and Xp Pro and can not figure out waht the problem is.
CAn someone please help me ??
0
Comment
Question by:bearpaws
  • 2
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
dgorin earned 500 total points
ID: 9733317
#1, I don't check any project references using VID to do normal asp web development.  If you include any ActiveX components in your project your project won't be real portable.

For #2, here's what I use for asp 2 & 3

response.Expires = 0
response.ExpiresAbsolute = Now() - 1
response.addHeader "pragma","no-cache"
response.addHeader "cache-control","private"
Response.CacheControl = "no-cache"

0
 

Author Comment

by:bearpaws
ID: 9733840
I just wanted to make sure on the project references. I have never checked anything either.
I have tried all of those statements and they just won't expire.Still there went you press the back button...sigh :(
It's crazy. I have ran the web site on a WinNt4.0, 2000 and 2003 and it makes no difference..sigh....
got any more ideas?
thanks...
0
 
LVL 5

Expert Comment

by:dgorin
ID: 9733882
Maybe a browser setting?  I use IE with the "Check for newer versions of the stored page" set to Automatic, and I've never had a problem with forcing db pages to expire.

0
 

Author Comment

by:bearpaws
ID: 9735772
yep, all sorts of things. They just won't expire...
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to connect a WordPress website to Google Analytics. This will be demonstrated using a Windows 8 PC Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php :…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now