Solved

ASP loading form cache irritates me

Posted on 1998-11-26
4
196 Views
Last Modified: 2013-12-25
I have one ASP with a button. After pressing the button, onclick event fires and sets window.location.href to another ASP page. That page should display data from the database, but it displays the old version of page with old data form IE's cache. How can I force the page to refresh after loading or how can I force it to always get the fresh data regardless what's in the cache?

Bocian...
0
Comment
Question by:Bocian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 2

Expert Comment

by:vendrig
ID: 1856759
Are you sure it's IE cache? Because there's a server cache as well. You can turn it off, but I can't tell you how at this moment. It's in the docs though, or maybe a kind soul here can tell you.
0
 

Author Comment

by:Bocian
ID: 1856760
It's IE's cache because I can switch it off in Internet settings on my local computer. But I cannot rely on the fact that everybody will have this cache disabled. In most cases it's enabled. When i request the page as follows:
 http:// bla bla bla/mycleverpage.asp?param=value&param2=value2
and the same request is buffered, it is displayed from the cache with the old data, but the actual data has changed meanwhile...
0
 
LVL 2

Accepted Solution

by:
Wiz_of_Oz earned 100 total points
ID: 1856761
to skip the cacheing of a page insert the following line into your HEAD section...

<meta http-equiv="PRAGMA" value="NO-CACHE">
0
 

Expert Comment

by:bslavin
ID: 1856762
Or you can use:

<%Response.Expires = 0%>

Which will not allow the server to cache the page.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

695 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