gpt4 book ai didi

javascript - iOS: "Added to home screen"网站不会刷新

转载 作者:行者123 更新时间:2023-11-28 17:34:10 25 4
gpt4 key购买 nike

我正在测试一个网站,我通常在 Safari iOS 中打开它,然后将它添加到主屏幕以便我可以全屏查看它,这是我的元

<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">

<meta name="apple-mobile-web-app-capable" content="yes">

<link rel="apple-touch-icon-precomposed" href="favicon.png"/>

<meta name="apple-mobile-web-app-status-bar-style" content="black">

但我注意到当我重新打开该应用程序时,有时完全随机地 web 应用程序不会刷新...我尝试重置 safari,但仍然是旧版本...

这是一种奇怪的行为,我想知道我是否应该在 meta 中设置 seomthing 以至少在调试/测试阶段强制刷新...

最佳答案

想知道这是否可行?

<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

此链接可能有帮助:

http://www.i18nguy.com/markup/metatags.html

关于javascript - iOS: "Added to home screen"网站不会刷新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10336135/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com