HTML 5 appcache works in safari / opera / chrome but not firefox

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

My code has the following:

<!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 use the code from here: http://jonathanstark.com/blog/2009/09/27/debugging-html-5-offline-application-cache/ to debug the application and display the output on the site.

In firefox, output from the debug code shows that it downloads all the files and causes the swap cache. If I disconnect from the Internet and follow the link to another page that needs to be loaded, I get the message β€œUnable to connect” in Firefox, doing the same in Safari, Opera and Chrome, this works great.

Any help and suggestions would be appreciated.

Thanks Steve

+11
html5 firefox caching manifest
Sep 16 2018-11-11T00:
source share
7 answers

See if the Server sets the no-cache / no-store headers for the generated files. Firefox then ignores the manifest, unlike other browsers.

+11
Jul 24 2018-12-12T00:
source share

I had a similar problem. The problem was that the FireFox cache file is more aggressive, so I had to add these headers:

For manifest:

 Pragma: no-cache Cache-Control: no-cache Expires: date 

And for the files:

 Last-Modified: date Cache-Control: no-cache Expires: date 

Replace date with the current date of RFC 1123.

+4
Mar 14 '14 at 10:16
source share

check if no-cache / no-store headers are set

+1
Feb 13 '14 at 11:45
source share

I had a similar problem.

  • Make sure the manifest file is in the form "text / cache-manifest"
  • Do not try to use it in private browsing mode in Firefox / IE. It only works in normal viewing mode. But it works in both modes in Chrome
  • Offline, simply changing the url can be a problem

    • http://localhost:8080/app does not work in Firefox / IE
    • http://localhost:8080/app/ works in Firefox / IE

    Both of them work in Chrome.

  • Use these handy resource viewers to get a more detailed perspective.
    • about:cache - Firefox
    • chrome://appcache-internals/ - Chrome

Please fill in if someone knows what it is for IE.

+1
Apr 09 '14 at 16:21
source share

In Firefox settings β†’ Advanced β†’ Network, in the list β€œThe following websites store data for offline use:”, do you see your website? If so, try clearing your website from the list, and then reloading your website.

0
Sep 16 2018-11-11T00:
source share

The answer from Earl above worked for me in combination with disabling FireBug.

In the settings of Firefox β†’ Advanced β†’ Network, in the section β€œThe following websites store data for offline use:” list, do you see your Website? If so, try clearing your website from the list and then reloading your website.

-one
Sep 18 '14 at 23:19
source share

I am also facing the same problem; This heading has been fixed for me.

Content-Type: text / cache-manifest

-one
Aug 07 '15 at 11:04
source share



All Articles