Help - Search - Members - Calendar
Full Version: Refreshing pages in explorer
Invision Power Services > Community Forums > Community Web Design and Coding
RedBora
When i change a html page in dreamweaver and upload it to my site, i click refresh in my browser (Explorer 6) and....nothing changes.

When i do the same thing in Mozilla it works as expected.

I even added a meta tag (Pragma) to avoid cashing by the browser and force a download from the server. But that is not what happens (explorer).

QUOTE
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="imagetoolbar" content="no">
<title></title>
<link href="../Templates/portalmainwin.css" rel="stylesheet" type="text/css">
</head>


Few remarks:
- I use frames and I am talking about the main part of the page where the content is.


Additional question,
if you do not use any meta tags to force a download from the server, when does a browser decide to download the page, insteaded of reloading the temporary stored files?

I do not think its a good idea to use the code above for every page on a site (for server load), but just use it for pages that change frequently....

But how to avoid that people are whatching a pages that is already 6 months old and changed?
Michael K.
CODE
<?php

      @header("Cache-Control: no-cache, must-revalidate, max-age=0");
      @header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
      @header("Pragma: no-cache");

?>


Try that?
RedBora
Ok thanks,

the script you provided is to force a page update every time the browser is started, I will need that!

But how to modify it so that the page is reloaded let say once a week (to reduce server load)?

Do I only need this one below, with a meaningfull value for max-age?
QUOTE
@header("Cache-Control: no-cache, must-revalidate, max-age=0");
RedBora
It's strange.....

In Firefox this works as expected. But using explorer 6 there is still no guaranteee that a page is refreshed when it has changed.

I also experimented with the settings in explorer (update at every visit of the page) but even then a modified page is not always loaded....


Is it possible that Dreamweaver does not change the time/date stamp correctly.....? There must be some reason that explorer does not understand a page has changed......

....or does Bill Gates not understand html?

...or me off course sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.