Solved

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

Posted on 2003-10-22
4
150 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

939 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

10 Experts available now in Live!

Get 1:1 Help Now