HTML 5 Appcache在safari / opera / chrome中工作,但不是firefox [英] HTML 5 Appcache works in safari/opera/chrome but not firefox

查看:216
本文介绍了HTML 5 Appcache在safari / opera / chrome中工作,但不是firefox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行在网站上的html5 appcache,它在Safari,Opera和Chrome中运行正常,但是在Firefox上无法运行。

我的代码:

 <!DOCTYPE HTML> 
< head>

和以下manifest.appcache文件:

  CACHE MANIFEST 
/
/ accessibility
/ anchoring
/业务应用程序区域
/校准-rep-system-preferences
/卓越循环
/ collapse-anchors
/对比分析和映射 -
/ convincers
/创建-a-air-of-authority
/ decision-making
/ submodalities
/ embedded-commands
/ embedded-commands-2
/ eye - 模式
/四种反馈类型
/ home
/ how-to-remember-names
/介绍到锚点
/介绍-nlp
/ key-elements-of-meta-model
/ language-and-communication-model
/ language-patterns
/ leadership
/ modeling
/ my-action-plan
/ new-behavior-generator
/ nlp-presuppositions
/结果思考
/步调和领导
/知觉位置
/谓语短语
/谓词
/优先考试
/ presu pposition-cards
/ presuppositions
/ privacy
/ rapport
/融洽关系速度和领先
/代表性系统
/ sensory-acuity
/战略
/调整结构反馈
/ nlp技术结构
/结构 - 内容
/次级方式
/ submodalities-and-strategies
/ submodalities-checklist
/ terms-and-conditions
/ the-6-deadly-words
/ the-meta-mirror
/预设的权力
/问题框架和结果框架
/用户配置文件
/良好结果
/什么 - is-nlp
/userImages/nlp_language_comm.png
/css/mobile.css
/css/style.css


#哈希值:a4e8f4f6a4dd45dd3e8acdaae8546a0a

我使用这里的代码: http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/ 调试appcache并显示出来放在网站上。

在Firefox中,调试代码的输出显示它下载所有文件并调用交换缓存。如果我从互联网上断开连接,并点击另一个应该下载的页面的链接,我就可以在Firefox中看到无法连接的消息,而在Safari,Opera和Chrome中也可以正常使用。

$ b $
$ b

感谢
Steve


I have an html5 appcache running on a website, it works fine in Safari, Opera and Chrome but it fails to work on Firefox.

I have the following in my code:

<!DOCTYPE HTML>
<html manifest="./manifest.appcache">
<head>

and the following manifest.appcache file:

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

I am using the code from here: http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/ to debug the appcache and display the output on the site.

In firefox the output from the debug code shows it downloading all the files and calling swap cache. If I then disconnect from the internet and click on a link to another page which should have downloaded I get the Unable to Connect message in Firefox, while doing the same in Safari, Opera and Chrome it works fine.

Any help and suggestions would be appreciated.

Thanks Steve

解决方案

Look if the Server sets no-cache/no-store headers for the generated files. Firefox will then ignore the manifest in contrary to the other browsers.

这篇关于HTML 5 Appcache在safari / opera / chrome中工作,但不是firefox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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