相关疑难解决方法(0)

HTML 5 Appcache适用于safari/opera/chrome但不适用于firefox

我在网站上运行了一个html5 appcache,它在Safari,Opera和Chrome中运行良好,但它无法在Firefox上运行.

我的代码中有以下内容:

<!DOCTYPE HTML>
<html manifest="./manifest.appcache">
<head>
Run Code Online (Sandbox Code Playgroud)

以及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
Run Code Online (Sandbox Code Playgroud)

我正在使用此处的代码:http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/来调试appcache并在站点上显示输出.

在firefox中,调试代码的输出显示它下载所有文件并调用交换缓存.如果我然后断开与互联网的连接并点击应该下载的另一个页面的链接,我在Firefox中获得了无法连接的消息,而在Safari,Opera和Chrome中执行相同的操作则可以正常工作.

任何帮助和建议将不胜感激.

谢谢Steve

firefox html5 caching manifest

11
推荐指数
2
解决办法
5403
查看次数

AppCache在Safari,Firefox中行为不端

我在使用AppCache时遇到了一些重大问题.

我有一个单页面应用程序(使用Page.js使用真实URL 并在页面加载时从服务器加载HTML,(dispatch:false)

它在Bode.js上运行,特别是它是一个Sails.js应用程序.

我在布局的HTML标签中有一个清单文件.清单文件已经过重复测试,所有内容都会检出.它在Chrome中完美运行.即使在Safari中,它也会在检查器中正确显示,并且具有文件中列出的资产列表.到现在为止还挺好.

但是,在脱机时,Safari无法加载除HTML文档本身之外的任何内容.所以我基本上只看到一个没有样式的标题列表.控制台显示了一堆404.因此,即使它正确读取清单文件,它也不会缓存任何内容.

Firefox甚至没有检测到清单文件,只是看起来像它不存在一样工作.

iOS7上的Safari表现得像Firefox,在离线时没有显示任何内容.

任何有明白想法的人为什么会这样?

javascript node.js html5-appcache sails.js page.js

6
推荐指数
0
解决办法
591
查看次数

如何让应用程序缓存清单在Safari 7.0.3上运行?

我已经迷上了两天了,这让我发疯了.希望有人可以对这件事情发表一些看法.

我正在跑步: 小牛队(MAC),Safari Versie 7.0.3(9537.75.14)

index.php看起来像:

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

    <meta charset="UTF-8" /> 
    <link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
    <p>The time is <time><?php echo time(); ?></time></p>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

style.css看起来像:

html, body
{
    margin      : 0;
    padding     : 0;
    font-size   : 100%;
    font-family : "Helvetica Neue", Helvetica, Verdana, Arial, sans-serif;
}

p
{
    text-align : center;
}

p time
{
    color : red;
}
Run Code Online (Sandbox Code Playgroud)

manifest.php看起来像:

<?php header('Content- Type: text/cache-manifest'); ?>
CACHE MANIFEST …
Run Code Online (Sandbox Code Playgroud)

html5 caching html5-appcache

6
推荐指数
1
解决办法
1206
查看次数