更新时间:2023-02-04 12:59:59
我有类似的问题。出于某种原因,除非您在使用GET时没有更改的静态页面上明确要求,否则IE将不会检索头部。将ajax类型更改为HEAD而不是GET或POST,并且它应该提取响应头文件。
I had a similar problem. For some reason IE won't retrieve the head unless you explicitly ask for it on static pages that haven't changed when you use GET. Change the ajax type to "HEAD" instead of GET or POST and it should pull the response headers.