且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iOS6 - 如何清除主屏幕/独立Web应用程序的缓存?

更新时间:2023-01-01 17:44:13

我无法验证正确清除缓存但这对我有用:

I can't verify the cache being cleared properly but this worked for me :

为此,您需要在iOS上允许Web Inspector设备。
转到设置> Safari>高级> Web检查器(必须处于活动状态)
您必须激活计算机Safari上的开发人员菜单。
转到首选项>高级>激活开发人员菜单

In order to do this, you need to allow Web Inspector on your iOS device. Go to Settings > Safari > Advanced > Web Inspector (it has to be active) And you have to activate the developer menu on your computer's Safari. Go to Preferences > Advanced > Activate Developer menu


  1. 使用USB连接线将设备连接到计算机

  2. 转到safari> Developpement>您的设备名称>检查应用程序(应用程序必须运行)

  3. 这将打开计算机上用于Web应用程序的检查器

  4. 检查员打开时清除缓存(命令+ alt + E)

  5. 检查员仍然打开时刷新计算机上的页面(命令+ R)

  1. Connect your device to your computer with the USB cable
  2. Go to safari > Developpement > Your Device name > Inspect an App (The app has to be running)
  3. This will open The inspector on your computer for the web app
  4. While the inspector is open Clear the cache (command + alt + E)
  5. With the inspector still open refresh the page on your computer (command + R)

不知何故,Webapp缓存被清除,我得到了非缓存代码。

Somehow the Webapp cache got cleared and i got the non-cached code.