【发布时间】:2012-02-22 02:15:31
【问题描述】:
我正在使用离线 HTML5 功能来缓存我的 Web 应用程序。
它在某些时候可以正常工作,但在某些情况下它会出现奇怪的行为。我正在尝试找出原因,以及如何解决它。
我正在使用 Sammy,我认为这可能是相关的。
这是出错的时候,
如果在第 1 步中我浏览到 http://domain/App/(包括斜杠),一切正常。
它会进入一些其他奇怪的状态,即未调用 sammy 路由,因此页面保持空白,但我无法可靠地复制它。
??
更新:问题是上述步骤之前引起了问题。当我按照上述步骤操作时,它现在正在工作,所以很难说到底发生了什么。我每次都是从一致的状态开始,因为我是从 VM 中的快照开始的。
我的缓存清单如下所示,
CACHE MANIFEST
javascripts/jquery-1.4.2.js
javascripts/sammy/sammy.js
javascripts/json_store.js
javascripts/sammy/plugins/sammy.template.js
stylesheets/jsonstore.css
templates/item.template
templates/item_detail.template
images/1Large.jpg
images/1Small.jpg
images/2Large.jpg
images/2Small.jpg
images/3Large.jpg
images/3Small.jpg
images/4Large.jpg
images/4Small.jpg
index.html
【问题讨论】:
标签: html offline offline-caching sammy.js