JavaScript Application cache manifest not loading in Firefox, ok in Chrome and Safari application cache manifest,application cache manifest file,application cache manifest

I have the following manifest

CACHE MANIFEST
# cache-revision-29541
# cache-creation-date: Fri Dec  5 11:33:29 GMT 2014
CACHE:
app.html
NETWORK:
*

And the following app.html

<!DOCTYPE html>
<html manifest="app.manifest">
<head>
    <title>cache test</title>
    <script>
    function checkCache() {
        var appCache = window.applicationCache;
        var logACEvent = function(e) {
            console.log("Cache Event " + e.type + " Status: " + appCache.status);
        }
        appCache.addEventListener('error', logACEvent, false);
        appCache.addEventListener('checking', logACEvent, false);
        appCache.addEventListener('noupdate', logACEvent, false);
        appCache.addEventListener('downloading', logACEvent, false);
        appCache.addEventListener('progress', logACEvent, false);
        appCache.addEventListener('updateready', logACEvent, false);
        appCache.addEventListener('cached', logACEvent, false);
    }
    checkCache();
    </script>
</head>
<body>
</body>
</html>

And my .htaccess entries (to set content type)

AddType text/cache-manifest .manifest
ExpiresByType text/cache-manifest "access plus 0 seconds"

I have verified the server is setting the content type.

In Safari, this outputs two console messages

Cache Event checking Status: 2
Cache Event noupdate Status: 1

In Chrome, this outputs

Cache Event checking Status: 2
Cache Event noupdate Status: 1

In Firefox I get

Cache Event checking Status: 0
Cache Event error Status: 0

In IE11 I get

(i) Resource doesn’t exist on the server: 'http://10.119.103.2/~adf/RMC2/release/beta/app.html'.
(i) AppCache Fatal Error
Cache Event error Status: 0

The app URL is 'http://{host}/~adf/RMC2/release/beta/app.html' app.manifest and app.html are in the same folder.

No indication of what the error might be. I can load the URL that IE complains about directly (its the same URL used to load the app).

about:cache in firefox does not even list this application.

CACHE MANIFEST
app.html

Even with the above simple manifest, IE11 and Firefox are reporting an error, with IE reporting a Manifest parse failure error in the console.

HTML1300: Navigation occurred.
File: app.html
Creating AppCache with manifest: 'http://10.119.103.2/~adf/RMC2/release/beta/app.manifest'.
Cache Event checking Status: 0
Manifest parsing failure: 'http://10.119.103.2/~adf/RMC2/release/beta/app.manifest'.
AppCache Fatal Error
Cache Event error Status: 0

What am I doing wrong?

Update:

If I install app.manifest and app.html in ~adf/RMC2/... it works in all browsers, its when it is installed in the sub-folders release/beta that it doesn't work in firefox and IE.

Why is that?

Answer:1

I have an array of simple objects that looks like the following: var objects =[ { "group": "05", "format": "Legacy", "active": false }, { "group": "05", "...

I have an array of simple objects that looks like the following: var objects =[ { "group": "05", "format": "Legacy", "active": false }, { "group": "05", "...

I am using account-google, I don't know why it doesn't publish emails to the client. From the doc about Meteor.user(): By default the server publishes username, emails, and profile (writable by ...

I am using account-google, I don't know why it doesn't publish emails to the client. From the doc about Meteor.user(): By default the server publishes username, emails, and profile (writable by ...

I have jQuery replaceWith call, and I want to pop up an alert only when the replaceWith finishes loading. To achieve this I have this very naive javascript implementation: $(document).ready(...

I have jQuery replaceWith call, and I want to pop up an alert only when the replaceWith finishes loading. To achieve this I have this very naive javascript implementation: $(document).ready(...

  1. javascript function when page loads
  2. javascript function when button clicked
  3. javascript function when document ready
  4. javascript function when submit form
  5. javascript function when checkbox is checked
  6. javascript function when click
  7. javascript function when hover
  8. javascript function when ready
  9. javascript function when
  10. javascript function when done
  11. javascript function when load
  12. javascript function on submit
  13. javascript function on change
  14. javascript function on object
  15. javascript function on scroll
  16. javascript function on button
  17. javascript function on html
  18. javascript function on href
  19. javascript function on timer
  20. javascript function on start

I have a problem. When I first time press on the link div show's then when I press on document it's disappear. When I press second time on link div appears and suddenly disappears. What's wrong? $(...

I have a problem. When I first time press on the link div show's then when I press on document it's disappear. When I press second time on link div appears and suddenly disappears. What's wrong? $(...

  1. jquery show hide div
  2. jquery show hide toggle
  3. jquery show hide not working
  4. jquery show hide class
  5. jquery show hide boolean
  6. jquery show hide div by id
  7. jquery show hide span
  8. jquery show hide password
  9. jquery show hide on click
  10. jquery show hide label
  11. jquery show hide fade
  12. jquery show hide table row
  13. jquery show hide css
  14. jquery show hide based on class
  15. jquery show hide table
  16. jquery show hide button by id
  17. jquery show hide display none
  18. jquery show hide modal
  19. jquery show hide on load
  20. jquery show hide checkbox