IE Caching issue with search ?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
User avatar
rossnick
Registered User
Posts: 52
Joined: Thu Nov 22, 2001 5:55 pm
Location: Québec, Canada

IE Caching issue with search ?

Post by rossnick »

Hi there !

I search this forum for similar problems, I found some reference, but the proposed solutions didn't work for me.

URL: http://forum.micro.info/
Template(s) used: standard subsilver
Any and all MODs: none, just a couple of my own modifs, as adding column in user profil.
Do you use a port of phpBB: no
Version of phpBB: 2.0.6
Version of PHP: 4.3.3
Version of Apache: 2.0.47
Which database server and version: mysql 4.0.14
Host: Linux RedHat 9.0 hosted in house.
Did someone install this for you/who: No, my self (experienced linux admin)
Is this an upgrade/from what to what: no
Is this a conversion/from what to what: no
Have you searched for your problem: yes
If so, what terms did you try: apache/2, search, cache ie6
State the nature of your problem:

We recently completly upgrade our hardware to a brand new machine. We upgraded the os, php and apache all together. Since then, when people do a search, if the click a link in the search results, and then back, the get a "Warning: Page has Expired" page. They have to refresh to get the content.

I've tried selveral combinasion of headers like suggested in :
http://www.phpbb.com/phpBB/viewtopic.ph ... 707#406707
http://www.phpbb.com/phpBB/viewtopic.ph ... 099#488099
With no luck...

Do you have a test account for us: no
Nicolas Ross
640kb Productions, Personal blog (not very updated often)

In most countries selling harmful things
like drugs is punishable. Then howcome people
can sell Microsoft software and go unpunished?
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

Hi!

I have the same problem as you, and tryed the things as you did without any success either. I moved my forum to another host, my old one runned apache 1.3.31 and my new one runs 2.0.50.

And with this:
php 4.x
mySQL4x
Linux redhat
(my board is 2.0.7)

I´ve been reading a bit here on phpBB.com and finding some old posts about that php4 doesn´t work with apache2x. But now, isn´t it solved somehow, or should i try to downgrade to apache 1x?

All answers are welcome.

EDIT--> This is how my page_header looks today:

Code: Select all

// Add no-cache control for cookies if they are set
//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';

// Work around for "current" Apache 2 + PHP module which seems to not
// cope with private cache control setting
if (!empty($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache/2'))
{
	header ('Cache-Control: no-cache, pre-check=0, post-check=0');
}
else
{
	header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');
}
header ('Expires: 0');
header ('Pragma: no-cache');

$template->pparse('overall_header');

?>
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

Hi again!

I really need some help with this.

May i ask if there is anyone here that runs php4x with apache2x and DON´T have this problem. If it is, can you plz post the lower part of your page_header.php here(wich is in folder "inlcludes"). There must be a way to solve this....or!?

Thanks!
User avatar
A_Jelly_Doughnut
Former Team Member
Posts: 34458
Joined: Sat Jan 18, 2003 1:26 am
Location: Where the Rivers Run
Contact:

Post by A_Jelly_Doughnut »

I'm one of those; I use Mozilla and it has not this issue ;)

Consider sites like hotmail after you log in. If you hit aback in IE, you'll get the message.
A Donut's Blog
"Bach's Prelude (Cello Suite No. 1) is driving Indiana country roads in Autumn" - Ann Kish
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

Yes, it works in mozilla firefox, opera, netscape, but not IE. And i know it did before. I tryed it now again on my old server so i´m sure of it. Anyway, 90% of my visitors uses IE so it´s pritty important that it works in IE.

I visited your site, and searched on your forum. And it work´s just fine even with IE. Do you think you can post the lower part of your page_header.php here. Maybe there´s a way to fix it?

Thanks!
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

Is´nt it someone else that runs php4x with apache2x and don´t have this problems? If it is could you plz post your page_header.php here. Any other suggestions maybe?

Really need help with this guys! :(

BTW, i read this article written in october 2002: http://www.phpbb.com/kb/article.php?article_id=4 It says that downgrade to apache 1x is the best solution. But is it still? Isn´t it fixed somehow now?
jsmotta
Registered User
Posts: 38
Joined: Thu Dec 25, 2003 12:05 am

Post by jsmotta »

My users are having the same problem. What's odd is I tested it right here on phpbb.com, and it works great here, just not on my forums. So, I installed the ieHTTPHeaders IE plugin...

http://www.blunck.info/iehttpheaders.html

and compared exactly what was being recieved by the browser from phpbb.com, vs. from my site. Then modifieed the page_header.php to try to make the headers match as close to exactly as I could. See samples below...
phpbb.com wrote: HTTP/1.1 200 OK
Date: Thu, 13 Jan 2005 23:13:10 GMT
Server:
X-Powered-By: PHP/4.3.10
Set-Cookie: phpbb2support_data=a%3A0%3A%7B%7D; expires=Fri, 13-Jan-2006 23:13:10 GMT; path=/
Set-Cookie: phpbb2support_sid=f91888b65a034e6f21594625e2f34130; path=/
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Expires: 0
Pragma: no-cache

Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1

my site, before tweaking the page_header.php wrote: HTTP/1.1 200 OK
Date: Thu, 13 Jan 2005 23:16:14 GMT
Server: Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.7a DAV/2 FrontPage/5.0.2.2634 PHP/4.3.7 mod_gzip/2.0.26.1a
X-Powered-By: PHP/4.3.7
Set-Cookie: smogdb_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A6%3B%7D; expires=Fri, 13-Jan-06 23:16:14 GMT; path=/
Set-Cookie: smogdb_sid=08973d5ca3bf122cced705fc9a449e67; path=/
Cache-Control: no-cache, pre-check=0, post-check=0
Expires: 0
Pragma: no-cache

Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

my site, after tweaking the page_header.php wrote: HTTP/1.1 200 OK
Date: Thu, 13 Jan 2005 23:26:32 GMT
Server: Apache/2.0.46 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.46 OpenSSL/0.9.7a DAV/2 FrontPage/5.0.2.2634 PHP/4.3.7 mod_gzip/2.0.26.1a
X-Powered-By: PHP/4.3.7
Set-Cookie: smogdb_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A32%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A6%3B%7D; expires=Fri, 13-Jan-06 23:16:14 GMT; path=/
Set-Cookie: smogdb_sid=08973d5ca3bf122cced705fc9a449e67; path=/
Cache-Control: private, pre-check=0, post-check=0, max-age=0
Expires: 0
Pragma: no-cache

Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html


Yet, after the changes to page_header.php, the problem persists on my site. Any suggestions would be appreciated. Or if someone can point out which of the above headers still needs to be fixed.
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

Hi!

I been trying to solve it for some time now. But still no luck.

The reason why it works fine here on www.phpbb.com is that they run an old version of apache (1.3.33).

So, i still got this problem to. So if anyone knows how to fix it.....
jsmotta
Registered User
Posts: 38
Joined: Thu Dec 25, 2003 12:05 am

Post by jsmotta »

maxmat wrote: Hi!

I been trying to solve it for some time now. But still no luck.

The reason why it works fine here on www.phpbb.com is that they run an old version of apache (1.3.33).

So, i still got this problem to. So if anyone knows how to fix it.....


This may be my ignorance showing, but why does the browser care what software the server is running? The headers tell the browser what to do, and if the headers are the same, then the headers are the same. :? Theoretically, the httpd software could be some guy named Bob hand typing all the HTTP Headers and HTML back to the browser. 8O It'd be the worlds slowest server, but as long as everything was coded correctly, the browser should be able to digest it.
However, evidence does seem to strongly suggest I'm wrong. :x :cry: :evil: I would understand is the server software were screwing up the headers I was passing it... but it's not in my case, so....
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

This may be my ignorance showing, but why does the browser care what software the server is running?

Well, i´m not so good at apache. But what i understood is that apache v.2x causes it as some kind of "safetything" (don´t know the english word). But not with apache v.1x. So it´s some kind of update in v.2 that causes it, and i´m pretty sure that it is.

My old host ran v.1x and there everything worked just fine. But after i changed host that runs v.2x it doesn´t work, and that seems to be the case for several ppl. I guess you run apache v.2....

EDIT-->
I spoke to my new host about this, and they said that all sites that runs a phpBB forum hosted by them have the same problem and that it is apache 2 that causes it. They also said that it´s nothing they can do about it and that downgrading to v.1 is not an alternative because v.2 is faster and safer than v.1.

They told me that this is an issue for phpBB and recommended me to take it up here on phpBB.com. But saidly nobody seems to know anything about it....
User avatar
Marcus Wendel
Registered User
Posts: 534
Joined: Sun Mar 10, 2002 5:58 pm
Location: Sweden
Contact:

Post by Marcus Wendel »

Has anyone found a solution or workaround for this problem?
Apart from telling all users to move to Firefix :-)

/Marcus
User avatar
maxmat
Registered User
Posts: 205
Joined: Wed May 05, 2004 8:05 pm
Location: Sweden

Post by maxmat »

Nope....not me anyway. But i don´t know anyone else that fixed either so...
Locked

Return to “2.0.x Support Forum”