【发布时间】:2011-09-16 10:24:36
【问题描述】:
我在网站上运行了一个 html5 应用缓存,它在 Safari、Opera 和 Chrome 中运行良好,但在 Firefox 上无法运行。
我的代码中有以下内容:
<!DOCTYPE HTML>
<html manifest="./manifest.appcache">
<head>
以及以下 manifest.appcache 文件:
CACHE MANIFEST
/
/accessibility
/anchoring
/areas-of-application-in-business
/calibrating-rep-system-preferences
/circle-of-excellence
/collapse-anchors
/contrastive-analysis-and-mapping-across
/convincers
/creating-an-air-of-authority
/decision-making
/elicitation-of-submodalities
/embedded-commands
/embedded-commands-2
/eye-patterns
/four-types-of-feedback
/home
/how-to-remember-names
/introduction-to-anchoring
/introduction-to-nlp
/key-elements-of-the-meta-model
/language-and-communication-model
/language-patterns
/leadership
/modelling
/my-action-plan
/new-behaviour-generator
/nlp-presuppositions
/outcome-thinking
/pacing-and-leading
/perceptual-positions
/predicate-phrases
/predicates
/preference-test
/presupposition-cards
/presuppositions
/privacy
/rapport
/rapport-pacing-and-leading
/representational-systems
/sensory-acuity
/strategies
/structure-for-adjusting-feedback
/structure-of-nlp-techniques
/structure-vs-content
/submodalities
/submodalities-and-strategies
/submodalities-checklist
/terms-and-conditions
/the-6-deadly-words
/the-meta-mirror
/the-power-of-presuppositions
/the-problem-frame-and-the-outcome-frame
/user-profile
/well-formed-outcomes
/what-is-nlp
/userImages/nlp_language_comm.png
/css/mobile.css
/css/style.css
# Hash: a4e8f4f6a4dd45dd3e8acdaae8546a0a
我正在使用此处的代码:http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/ 来调试 appcache 并在网站上显示输出。
在 Firefox 中,调试代码的输出显示它正在下载所有文件并调用交换缓存。如果我随后断开互联网连接并单击指向另一个应该已下载的页面的链接,我会在 Firefox 中收到无法连接消息,而在 Safari、Opera 和 Chrome 中执行相同操作时效果很好。
任何帮助和建议将不胜感激。
谢谢 史蒂夫
【问题讨论】:
-
听起来你的 Firefox 没有进入离线模式,它可能认为你仍然连接到互联网。点击 Firefox 按钮,在“Web Developer”子菜单中勾选“Work Offline”,看看是否是这个原因。
-
我刚试过这个,它显示离线模式错误页面。
标签: html firefox caching manifest