百度公司给做网站吗,免费网站设计软件,godaddy绑定wordpress,高端建站神器我正在使用jQuery ajax调用来请求来自发送HTTP响应头中的ETag的服务器的数据。我需要访问标题#xff0c;但是当请求成功并调用jqXHR.getAllResponseHeaders()时#xff0c;我只能看到服务器返回的标题的子集。如何使用jQuery AJAX请求访问ETag头#xff1f;实施例#xff…我正在使用jQuery ajax调用来请求来自发送HTTP响应头中的ETag的服务器的数据。我需要访问标题但是当请求成功并调用jqXHR.getAllResponseHeaders()时我只能看到服务器返回的标题的子集。如何使用jQuery AJAX请求访问ETag头实施例var jqXHR $.ajax({type: GET,url: ,dataType: json,ifModified: true,success: function (result) {var headers jqXHR.getAllResponseHeaders();console.log(JSON.stringify(headers));});我从jqxhr见标头是Pragma: no-cache\r\nLast-Modified: Wed, 22 Jan 2014 10:45:14 0000\r\nContent-Type: text/html\r\nCache-Control: no-store, no-cache, must-revalidate, post-check0, pre-check0, no-cache\set-cookie\\r\nExpires: Sat, 26 Jul 1997 05:00:00 GMT\r\n实际标头从服务器返回(在铬开发工具观察到的)Access-Control-Allow-Origin:*Cache-Control:no-cacheset-cookieCache-Control:post-check0, pre-check0Cache-Control:no-store, no-cache, must-revalidateConnection:keep-aliveContent-Encoding:gzipContent-Length:407Content-Type:text/htmlDate:Fri, 24 Jan 2014 20:27:54 GMTETag:29d8d1d98115057fe902b520199ea1b3Expires:Sat, 26 Jul 1997 05:00:00 GMTLast-Modified:Thu, 23 Jan 2014 07:14:57 0000Pragma:no-cacheServer:nginx/1.1.19Set-Cookie:AWSELBF3E9557318EB956CA386FC6CB4270164AD7830493699A2B6AED008F4C5F9DB5952A2A1072C33DDC32DEDE0CA6A3734EBAFD51B57A7A093B69A36A6659EF493E1B92BA63DE6;PATH/X-Powered-By:PHP/5.4.19我需要访问ETag头但好像jQuery或chrome将它从我身上隐藏起来。我已经尝试了相同的结果在Firefox中相同的代码。有人可以帮我弄这个吗2014-01-24Swaraj