简体   繁体   English

移动Safari iOS 9.3发出多个HTTP请求,最终显示错误

[英]Mobile Safari iOS 9.3 makes multiple HTTP requests, finally showing error

A website which used to work does no longer after the iOS 9.3 update. 在iOS 9.3更新后,以前可以正常工作的网站不再可用。 We get the following error in mobile Safari: 我们在移动Safari中收到以下错误:

A problem occurred with this webpage so it was reloaded 该网页出现问题,因此已重新加载

and

A problem repeatedly occured on " http://domain.ch/en/search/rent/f/ " http://domain.ch/en/search/rent/f/ ”上反复出现问题

At first we thought there was an endless redirect going on. 起初,我们以为正在进行无休止的重定向。 But that is not the case. 但事实并非如此。

  • The site works in all other browsers, it works with iOS 9.2 (no changes to the code were made) 该网站可在所有其他浏览器上使用,并且可与iOS 9.2一起使用(未对代码进行任何更改)
  • iOS Safari sends multiple requests, even though the first one was already successfully returned (HTTP Status 200) iOS Safari发送多个请求,即使第一个请求已成功返回(HTTP状态200)

This is the access log: 这是访问日志:

127.0.0.1 - - [24/Mar/2016:12:08:30 +0100] "GET /en/search/rent/f/ HTTP/1.1" 200 5028 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:31 +0100] "GET /wp-content/themes/theme/assets/js/scripts.100.js HTTP/1.1" 200 121450 "http://lo.domain.ch/en/search/rent/f/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:31 +0100] "GET /en/search/rent/f/ HTTP/1.1" 200 5028 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:32 +0100] "GET /wp-content/themes/theme/assets/js/scripts.100.js HTTP/1.1" 200 121450 "http://lo.domain.ch/en/search/rent/f/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:32 +0100] "GET /en/search/rent/f/ HTTP/1.1" 200 5028 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:32 +0100] "GET /wp-content/themes/theme/assets/js/scripts.100.js HTTP/1.1" 200 121450 "http://lo.domain.ch/en/search/rent/f/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:33 +0100] "GET /en/search/rent/f/ HTTP/1.1" 200 5028 "-" "Mozilla/5.0 (iPhone; CPU   iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
127.0.0.1 - - [24/Mar/2016:12:08:33 +0100] "GET /wp-content/themes/theme/assets/js/scripts.100.js HTTP/1.1" 200 121450 "http://lo.domain.ch/en/search/rent/f/" "Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"

I currently don't know what the cause of this could be. 我目前不知道这可能是什么原因。

I'm posting this in the hope that anybody else has encountered something similar since the iOS 9.3 update and has some insight into this strange behaviour. 我发布此消息是希望其他人自iOS 9.3更新以来也遇到类似的情况,并对这种奇怪的行为有所了解。

After some debugging we found out it works if we remove the CSS. 经过一些调试后,我们发现如果删除CSS,它可以工作。

The problem was a web-font. 问题是网络字体。 More specifically it was the WOFF variant of the webfont. 更具体地说,它是webfont的WOFF变体。 It lead to the crash in Safari. 它导致Safari中的崩溃。 After we exchanged it, everything is back to normal. 交换之后,一切恢复正常。

I guess in iOS 9.2 Safari used a different font-format (probably truetype) and since iOS 9.3 WOFF is used. 我猜想在iOS 9.2中,Safari使用了不同的字体格式(可能是truetype),并且由于使用了iOS 9.3 WOFF。 That is why the problem did not surface before. 这就是为什么这个问题以前没有出现过。

I was having the problem. 我遇到了问题。 I removed a webfont I was using in the Easy Google Fonts plugin and it fixed. 我删除了在Easy Google Fonts插件中使用的webfont,并对其进行了修复。 I was using Julius Sans One. 我正在使用Julius Sans One。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM