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

标签 javascript iphone ios webkit

我正在测试一个网站,我通常在 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/

相关文章:

javascript - 如何在 jQuery 中解析 JSON

iphone - 使用 transitionFromView 和 transitionWithView 的过渡行为

iphone - "failed to resume in time"从后台崩溃恢复

ios - ios7如何在后台运行进程

javascript - Bootstrap : Better way of lining up elements in columns and rows when you have to skip some

javascript - 在 JavaScript 中获取随机值 1 或 3

ios - AVAssetExportSession:导出完成后未调用完成回调

ios - 如何在 iOS 中查找字符串并替换它的子字符串?

javascript - 使用无序列表的 jQuery 下拉导航

ios - 如何将自定义单元格与右细节和基本单元格对齐?