Solved

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

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Do alert on select 6 29
Disable selected option from one select box when selected in another select box 26 70
Validating Date Part2 2 28
Hit counters in SharePoint 2013 2 30
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.
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…

730 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