Page 1 of 1

IE7 bug/header issue?

Posted: Thu Jan 29, 2009 10:18 am
by alex.barylski
I have the following headers being set at the start of a script:

Code: Select all

 //header("Content-Type:, text/html; charset=utf-8");
  header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
  header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
  header('Cache-Control: no-store, no-cache, must-revalidate');
  header('X-Server-Version: 1.0.0');
  header('Pragma: no-cache');
The first line is commented because it causes an annoying error in IE7.

Internet Explorer cannot download xxx...from 192.168.1.104

It only appears to happen when I manually enter the URI...when I navigate via links everything seems to work fine...

Firefox appears to work fine...

Anyone else experience this issue? Should I just remove the header and rely on the meta tag?

Re: IE7 bug/header issue?

Posted: Thu Jan 29, 2009 12:45 pm
by pickle
What if you move that header further down the list? Maybe the order matters to IE7?

Re: IE7 bug/header issue?

Posted: Thu Jan 29, 2009 12:47 pm
by VladSun
PCSpectra wrote:

Code: Select all

 //header("Content-Type:, text/html; charset=utf-8");
And if you remove the coma after "Content-Type:" ?

Re: IE7 bug/header issue?

Posted: Thu Jan 29, 2009 1:17 pm
by alex.barylski
pickle: I thought of that...no dice...

Nice catch VladSun... :)

Errr...ummmm...you passed the "test"...yea thats it... :P

I appreciate that, thank you :)

Re: IE7 bug/header issue?

Posted: Thu Jan 29, 2009 2:51 pm
by VladSun
I can't stand waiting for the next level :lol: