HTML5应用程序缓存清单文件在硬盘上的位置 [英] HTML5 Application Cache manifest file location on hard drive

查看:225
本文介绍了HTML5应用程序缓存清单文件在硬盘上的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用HTML5 App Cache的网站,我无法确定缓存更新的原因。我没有进行更改或添加/删除文件。

I have a site which uses HTML5 App Cache and I'm having trouble determining why the cache update started. I haven't made changes or added/removed files.

清单文件是动态生成的,包括应用程序文件夹中的所有文件,除了少数不应缓存的文件。我想查看缓存的清单文件,看看它与当前版本之间有什么区别。

The manifest file is generated dynamically and includes all files from the app's folder, except a few which should not be cached. I would like to check the cached manifest file to see what is the difference between it and the current version.

浏览器如何存储清单文件,以便他们能够确定何时更改以及缓存更新何时启动?

How do the browsers store the manifest file so they are able determine when it has changed and when should the cache update kick in ?

是否可以在浏览器缓存文件夹中的硬盘驱动器上找到此文件?

Can this file be found somewhere on the hard drive in the browser's cache folder ?

推荐答案

是的,他们必须这样做。它应该如何工作呢?存储在RAM中它将在重新启动后丢失并仅存储在Web中无法导致离线应用程序。

Yes they have to. How it should work otherwise? Stored in RAM it would be lost after reboot and stored only in web could not lead to an offline app.

但是他们存储它们的位置以及它们是否被加密是另一个问题。在Firefox中: C:\Users\brach \ AppData \ Local \ Mozilla \ Firefox \Profiles \ xxxxxx.default \OfflineCache \\\\\\\\\\\\\ 0

But where they store them and if they are encrypted is another question. In Firefox: C:\Users\brach\AppData\Local\Mozilla\Firefox\Profiles\xxxxx.default\OfflineCache\0\9\77546B5B27E111-0

该文件的内容为

    CACHE MANIFEST

    CACHE:
    style.css
    script.js
    index.htm

这就是我们如何知道它的清单。但对于其他浏览器,你必须自己探索它...;)

So that's a manifest how we know it. But for other browsers you have to explore it by yourself... ;)


  • In Firefox你可以轻松找到它输入 about:cache 作为URL并查看离线缓存设备部分。

  • 在chrome中,您可以输入 chrome:// appcache -internals 作为URL,让您直接显示包含清单的任何缓存文件的内容浏览器。

  • In Firefox you can easily find it out entering about:cache as URL and look in Offline cache device section.
  • In chrome you can enter chrome://appcache-internals as URL and let you show the content of any cached file including the manifest directly in the browser.

这篇关于HTML5应用程序缓存清单文件在硬盘上的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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