Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

firefox ignore javascript httprequest setRequestHeader ("Content-Encoding", "gzip")

  • 1 个回答
  • 40 人有此问题
  • 1 次查看
  • 最后回复者为 AnonymousUser

more options

I am calling JSON files from my Javascript httprequest to represent vertexcoordinates and so on for WebGL. Its work nice with pure json but Firefox ignore *.json.gz files what I requare by setting javascript code:

 function loadModel(JsonUrl,m) {
   var request = new XMLHttpRequest();
   request.open("GET", JsonUrl);
   request.setRequestHeader("Content-Encoding", "gzip");
   request.setRequestHeader("Content-Type", "text/plain");
   request.onreadystatechange = function() {
     if (request.readyState == 4) {
     	      	ModelArray[m][5]=JSON.parse(request.responseText);
     	      	FindMinMax(ModelArray[m][5].vertexPositions);
	      	  

if((m+1)==ModelArray.length && loadSeparate!="true"){ for(m=0;m

I am calling JSON files from my Javascript httprequest to represent vertexcoordinates and so on for WebGL. Its work nice with pure json but Firefox ignore *.json.gz files what I requare by setting javascript code: function loadModel(JsonUrl,m) { var request = new XMLHttpRequest(); request.open("GET", JsonUrl); request.setRequestHeader("Content-Encoding", "gzip"); request.setRequestHeader("Content-Type", "text/plain"); request.onreadystatechange = function() { if (request.readyState == 4) { ModelArray[m][5]=JSON.parse(request.responseText); FindMinMax(ModelArray[m][5].vertexPositions); if((m+1)==ModelArray.length && loadSeparate!="true"){ for(m=0;m

所有回复 (1)

more options

We have a solution join us on live support so we can assist you.