View previous topic :: View next topic |
Author |
Message |
Jasonr
Joined: 14 Sep 2002 Posts: 5 Location: WA USA
|
Posted: Tue Nov 05, 2002 8:33 pm Post subject: upgrade problem |
|
|
After upgrading B2 from .6pre to 0.6.1, I been experiencing this problem: when I try and update my template, it says that the file has been edited, but when I visit the website, it hasn't. Any ideas what the problem may be? _________________ Simple12 Network |
|
Back to top |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Wed Nov 06, 2002 12:21 am Post subject: |
|
|
Just force the refresh. That's a bug in MSIE, it seems... |
|
Back to top |
|
 |
MiniSizeIt
Joined: 02 Nov 2002 Posts: 70
|
Posted: Wed Nov 06, 2002 4:36 am Post subject: |
|
|
.6 pre never had this problem, but with .6.1, I have to do a forced refresh just to see anything updated.  |
|
Back to top |
|
 |
Jasonr
Joined: 14 Sep 2002 Posts: 5 Location: WA USA
|
Posted: Wed Nov 06, 2002 9:04 am Post subject: |
|
|
Sorry for a newb-like reply, but what would you consider a 'forced refresh'?
_________________ Simple12 Network |
|
Back to top |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Wed Nov 06, 2002 9:06 am Post subject: |
|
|
OK, let's see if this fixes your problem:
Open blog.header.php, look for these lines:
[php:1:ed7ebcb4bf]@header ("Last-Modified: $last_modified_header");
@header ('ETag: "'.md5($last_modified_header.$pagenow).'"');[/php:1:ed7ebcb4bf]
Replace them with these lines:
[php:1:ed7ebcb4bf]if (!$is_winIE) {
@header ("Last-Modified: $last_modified_header");
@header ('ETag: "'.md5($last_modified_header.$pagenow).'"');
}[/php:1:ed7ebcb4bf]
Next, look if you can refresh in MSIE. |
|
Back to top |
|
 |
redletter
Joined: 06 Nov 2002 Posts: 1
|
Posted: Wed Nov 06, 2002 3:33 pm Post subject: tnx |
|
|
this worked for me  |
|
Back to top |
|
 |
Jasonr
Joined: 14 Sep 2002 Posts: 5 Location: WA USA
|
Posted: Wed Nov 06, 2002 8:33 pm Post subject: |
|
|
Thx for the help, michel!
 _________________ Simple12 Network |
|
Back to top |
|
 |
mikelittle
Joined: 11 May 2002 Posts: 376 Location: UK
|
Posted: Wed Nov 06, 2002 11:38 pm Post subject: |
|
|
Michel,
I don't think this is correct. Firstly I use Mozilla and it is showing the same problem.
The problem being that the last_modified date is defined by
$last_modified_header = mysql2date('D, d M Y H:i:s', get_lastpostdate());
This doesn't take into account comments, ping backs, trackbacks, external sources (eg recently updated b2 blogs), or modification to the template(s).
I don't think there is a sensible/quick way to determine the last 'modified' date for the index page.
I'm going to remove it from my code.
Sorry,
Mike |
|
Back to top |
|
 |
michel v Site Admin
Joined: 25 Jan 2002 Posts: 799 Location: Corsica
|
Posted: Thu Nov 07, 2002 3:17 am Post subject: |
|
|
Uhm, maybe I should just generate it only for RSS templates then.
It's weird, because on Opera and Mozilla it refreshes fine here... |
|
Back to top |
|
 |
Phantom
Joined: 13 Nov 2002 Posts: 1
|
Posted: Wed Nov 13, 2002 8:17 am Post subject: |
|
|
These headers should work in IE:
Code: |
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
|
I don't remember the exact difference between the two as it was a looong time ago that I first discovered them to work around the "refresh" problem. Since then, it's become pretty much standard for me to use these headers in all php output. |
|
Back to top |
|
 |
allusion
Joined: 16 Jun 2002 Posts: 73 Location: Houston
|
Posted: Thu Nov 14, 2002 5:59 pm Post subject: |
|
|
Just a reminder that this code isn't currently in the zip file downloadable from SF. BTW the new filter function is awesome. Would you like me to write a little explanation for the smart quotes stuff for the documentation? |
|
Back to top |
|
 |
Hakkai
Joined: 12 Sep 2002 Posts: 28
|
Posted: Sat Nov 30, 2002 12:59 am Post subject: |
|
|
is the fix now included with the files from source forge d/l site? |
|
Back to top |
|
 |
forgotten-angel.org
Joined: 16 Nov 2002 Posts: 3 Location: Bronx,NY,NY
|
|
Back to top |
|
 |
zbrox
Joined: 08 Nov 2002 Posts: 17 Location: Stara Zagora, Bulgaria
|
Posted: Tue Dec 03, 2002 7:25 pm Post subject: finally? |
|
|
sorry for asking, but finally what turns out we have to do to fix this annoying problem for IE users? |
|
Back to top |
|
 |
kraylus
Joined: 03 Dec 2002 Posts: 4
|
Posted: Tue Dec 03, 2002 7:51 pm Post subject: |
|
|
you could also go into the Tools>Internet Options menu and click the settings button undearneath temporary internet files. change "check for newer versions of the page" to "everytime you visit the page."
sure, it sucks for dialup users but ehh... |
|
Back to top |
|
 |
|