I developed a web application that responds with data in the format specified by the client in the HTTP Accept Headers . Everything worked fine when using Firefox, but when I wanted to test my CSS / HTML on Chrome and IE, they both wanted to load the index page, as if it were an unknown type of content.
After some research, I found this article which says that IE sends a lot of crude Accept HTTP headers to it, among other things, a list of content types image/*at the very beginning.
This resulted in my web application trying to send the index page as image/jpeg.
So how do you know when to ignore and when to use Accept Headers?
source
share