PHP page load seems to be requesting itself and misinterpreting the result
- by Regis Frey
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?