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

前端 未结 7 1390
花落未央
花落未央 2020-12-06 06:04

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:

         


        
7条回答
  •  甜味超标
    2020-12-06 06:35

    I had a similar problem.

    1. Make sure the manifest file is served as type "text/cache-manifest"
    2. Dont try it out in Private Browsing mode in Firefox/IE. It only works in regular browsing mode. But it works in both modes in Chrome
    3. While offline, a simple change in the URL could be a problem

      • http://localhost:8080/app doesn't work on Firefox/IE
      • http://localhost:8080/app/ works on Firefox/IE

      Both of them work in Chrome

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

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

提交回复
热议问题