Redirect loop only on iPhone, and only when using mobile data

风格不统一 提交于 2021-01-29 17:25:55

问题


I have a site that, when certain links are clicked, gets sent into an infinite redirect loop rather than going to the linked page. But it is only happening to iPhone users. And only when they have wifi turned off. It doesn't happen when they're connected to wifi.

I cannot recreate the issue in Browserstack. And I've confirmed that the links work fine in Android, both on wifi and mobile data. It's a WordPress site with standard Rewrites in the .htaccess file, so no culprit there. And there's no mobile detection going on either in PHP or JS. If there were, I would expect this to be a problem with all mobile users.

I'm stumped. Has anyone ever heard of this problem? If not, does anyone have any suggestions for debugging tools for a situation like this? I run Windows 10 & Ubuntu. I don't have access to a Mac nor an iPhone.


回答1:


I finally sorted it out. "Cache-Control: no-transform". Reference: https://stackoverflow.com/a/25758842/1401755



来源:https://stackoverflow.com/questions/35519511/redirect-loop-only-on-iphone-and-only-when-using-mobile-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!