PHP page load seems to be requesting itself and misinterpreting the result
Posted
by Regis Frey
on Stack Overflow
See other posts from Stack Overflow
or by Regis Frey
Published on 2010-04-27T03:02:46Z
Indexed on
2010/04/27
3:03 UTC
Read the original article
Hit count: 433
I'm working on a messy PHP page by another developer and I was analyzing the resource view in the Webkit developer tools and noticed that the page (index.php) makes an HTTP requests for itself and then interprets the results as an image despite it being sent with the text/html header. Because of this it throws the warning:
Resource interpreted as image but transferred with MIME type text/html.
Looking at the time graph the call comes after the <head>
because it has already requested images for the body. Sometimes there are even two 'bad' requests.
Can anyone explain what might be happening and/or suggest how to fix this? Could these be related to PHP includes?
© Stack Overflow or respective owner