Solved

ASP loading form cache irritates me

Posted on 1998-11-26
4
190 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, 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…

749 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