Why IE accepts headers, why?

I am trying to debug a problem on my server side and I believe that it is related to accept headers that are sent from the browser. My question is, why will Internet Explorer change the “reception” of headers from one page to another? Can I change javascript request headers?

Here is a single page request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/xaml+xml, application/vnd.ms-xpsdocument, application/x-ms-application, application/x-shockwave-flash, */*

Here is a request from another page:

Accept: */*

All of them are GET requests, and I see significant differences between the content. All of them are served from one application server (Websphere).

+3
source share
1 answer

IE Accept Headers

IE, IE "" Accept. , , , , , , :

, IE , MIME-. :

image/jpeg, application/x-ms-application, image/gif, application/xaml+xml, image/pjpeg, application/x-ms-xbap, application/msword, application/vnd.ms-excel, application/x-shockwave-flash, */*

F5, , IE, , /. , IE , Accept, , MIME.

IE , , :

HKLM\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Accepted Documents

, , . , */* Accept, . , , , , .

JavaScript

(XMLHttpRequest) XMLHttpRequest.setRequestHeader(), .

. : HTTP JavaScript

: Accept.

, , AJAX, , JavaScript.

, , , , , .

+6

Source: https://habr.com/ru/post/1721826/


All Articles