Safari不会通过http / 2加载一些资源 [英] Safari won't load some resources over http/2

查看:522
本文介绍了Safari不会通过http / 2加载一些资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在服务器上启用了Http / 2,昨天我注意到在Iphone(IOS 10.2)上没有加载一些错误的资源:无法加载资源:无法连接到服务器。当我将Iphone连接到Mac时,控制台中没有错误,但只是因为某些请求导致该错误导致imidiatelly。有趣的是,未加载的资源是真实域的子域(CNAME是正确的)。网站位于https上。
服务器是Windows服务器2016.

Http/2 is enabled on server and yesterday I noticed that on Iphone (IOS 10.2) does not load some resources with error:failed to load resource:connecting to server is not possible. When I connect Iphone to Mac there are no errors in console but simply result of some requests result imidiatelly in that error. Interesting thing could be the fact that resources which are not loaded are subdomain of real domain( CNAME to be correct). Site is on https. Server is Windows server 2016.

编辑:
我们解决了这个子域问题,但仍有来自同一个域没有响应任何响应。

We resolved this subdomain problem, but still there are requests from same domain that are not responding with any response.

我知道IOS> 9.3在通过https加载资源时支持http / 2但是那些不工作的资源不属于该域名可以帮助解决这个问题,但我不知道如何。

I know IOS > 9.3 supports http/2 when resources are loaded over https but thing that resources which not working are not part of that domain could help to resolve this problem but I don't know how.

我知道可能问题与http / 2协议有关,因为我的android原生应用也停止使用错误: java.io.IOException:stream was reset:PROTOCOL_ERROR 。我通过强制我的应用程序使用http / 1解决了这个问题。现在有效。但是如何解决iphone safari问题?

I know that probably problem is related to http/2 protocol because my android native appliacation also stopped working with error : java.io.IOException: stream was reset: PROTOCOL_ERROR . I resolved that problem by forcing my application to use http/1. Now works. But how to resolve that iphone safari problem?

我正在使用ASP.NET Web Forms作为后端(从我使用的ASP.NET 4.6开始支持http2) 。

I'm using ASP.NET Web Forms as backend (which supports http2 since ASP.NET 4.6 which I'm using).

推荐答案

似乎找到了解决方案。经过几天的调查禁用动态内容压缩有帮助。

It seems that solution has been found. After few days of investigating disabling dynamic content compression helped.

这篇关于Safari不会通过http / 2加载一些资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆