仅在 iPhone 上重定向循环,并且仅在使用移动数据时 [英] Redirect loop only on iPhone, and only when using mobile data

查看:31
本文介绍了仅在 iPhone 上重定向循环,并且仅在使用移动数据时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,当点击某些链接时,它会被发送到无限重定向循环中,而不是转到链接页面.但它只发生在 iPhone 用户身上.并且只有当他们关闭 wifi 时.当他们连接到wifi时不会发生这种情况.

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.

我无法在 Browserstack 中重现该问题.而且我已经确认这些链接在 Android 中运行良好,无论是在 wifi 还是移动数据上.这是一个 WordPress 网站,在 .htaccess 文件中有标准的重写,所以没有罪魁祸首.并且在 PHP 或 JS 中都没有进行移动检测.如果有的话,我希望这对所有移动用户来说都是一个问题.

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.

我被难住了.有没有人听说过这个问题?如果没有,有没有人对这种情况的调试工具有任何建议?我运行 Windows 10 &乌班图.我无法使用 Mac 或 iPhone.

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.

推荐答案

我终于整理出来了.缓存控制:无转换".参考:https://stackoverflow.com/a/25758842/1401755

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

这篇关于仅在 iPhone 上重定向循环,并且仅在使用移动数据时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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