Solved

I need to Manually Refresh each page I visit - can I stop this from happening?

Posted on 2003-10-22
4
151 Views
Last Modified: 2010-08-05
Each day we have a set of accounts data that is fed into a HTML page, this can then be viewed via our Intranet.  The problem is that everytime we look at this page we see a previous set of results.  I have tried deleting the temparary Internet files and setting the settings to look for New Pages of stored versions evertime the page is visited but it still doesn't seem to work.

Is there a way I can put somthing in the HTML that will force the data to be refresed/the newest version.

Any help on this would be appreciated.

Cheers
0
Comment
Question by:ihaveaproblem
4 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 125 total points
ID: 9597314
In the HTML... kinda - but it doesn't work very well. What you should be doing is setting your HTTP headers to include suitable cache instructions.

http://www.mnot.net/cache_docs/ has just about everything you need to know.
0
 
LVL 33

Assisted Solution

by:knightEknight
knightEknight earned 125 total points
ID: 9599038
if you want to try a javascript solution, you can do this in your links to the .html page:

<A  href="accountsData.html"  onclick='this.href="accountsData.html?rnd="+Math.random();return true;' > accounts data </a>

Adding the random value makes the link unique each time, so it isn't cached.
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 10428512
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: dorward {http:#9597314} & knightEknight {http:#9599038}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

mplungjan
EE Cleanup Volunteer
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

770 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