IE7 bug/header issue?

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

IE7 bug/header issue?

Post 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?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: IE7 bug/header issue?

Post by pickle »

What if you move that header further down the list? Maybe the order matters to IE7?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: IE7 bug/header issue?

Post by VladSun »

PCSpectra wrote:

Code: Select all

 //header("Content-Type:, text/html; charset=utf-8");
And if you remove the coma after "Content-Type:" ?
There are 10 types of people in this world, those who understand binary and those who don't
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Re: IE7 bug/header issue?

Post 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 :)
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: IE7 bug/header issue?

Post by VladSun »

I can't stand waiting for the next level :lol:
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply