Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

This thread was closed and archived. Please ask a new question if you need help.

Firefox not recognizing changes to the .manifest file

  • No replies
  • 1 has this problem
  • 30 views
more options

Locking duplicate thread.
Please continue here: [/questions/993395]

So, I took this chunk of code directly from Mozilla:

              function onUpdateReady(){

window.applicationCache.swapCache(); } window.applicationCache.addEventListener('updateready', onUpdateReady); if(window.applicationCache.status === window.applicationCache.UPDATEREADY){ onUpdateReady(); }

Using jQuery I alerted the window.applicationCache.status. The alert always returns either a 0 or a 1....never a 4, which it should when I make a change to the .manifest file. This problem seems to be unique to Firefox, as all other browsers recognize an update when I do one.

 This is my .htaccess file:

AddType text/cache-manifest .manifest ExpiresActive On

<Files index.html> Header append Cache-Control "public, must-revalidate" </Files>

And my manifest file (condensed):

CACHE MANIFEST

  1. v 1.6

NETWORK: cache.manifest

CACHE: css/pages.css index.html

Any idea's as what I am missing to get Firefox to recognize an updated .manifest file so I can get my web app working?

<i>Locking duplicate thread.<br>Please continue here: [[/questions/993395]]</i> So, I took this chunk of code directly from Mozilla: function onUpdateReady(){ window.applicationCache.swapCache(); } window.applicationCache.addEventListener('updateready', onUpdateReady); if(window.applicationCache.status === window.applicationCache.UPDATEREADY){ onUpdateReady(); } Using jQuery I alerted the window.applicationCache.status. The alert always returns either a 0 or a 1....never a 4, which it should when I make a change to the .manifest file. This problem seems to be unique to Firefox, as all other browsers recognize an update when I do one. This is my .htaccess file: AddType text/cache-manifest .manifest ExpiresActive On <Files index.html> Header append Cache-Control "public, must-revalidate" </Files> And my manifest file (condensed): CACHE MANIFEST # v 1.6 NETWORK: cache.manifest CACHE: css/pages.css index.html Any idea's as what I am missing to get Firefox to recognize an updated .manifest file so I can get my web app working?

Modified by cor-el