kobotoolbox / enketo-express

We've moved! Please use the new repository 🠊 https://github.com/enketo/enketo-express
Apache License 2.0
102 stars 90 forks source link

FF issue with offline view #1116

Closed MartijnR closed 6 years ago

MartijnR commented 6 years ago
screen shot 2018-09-12 at 10 51 57 am

ApplicationCache fails

MartijnR commented 6 years ago

Looks like it doesn't like the explicit/x/ entry in the manifest:

CACHE MANIFEST
# version: 2018-09-12|19:45|en

CACHE:
/images/favicon.ico
/images/icon_180x180.png
/fonts/OpenSans-Bold-webfont.woff
/fonts/OpenSans-Regular-webfont.woff
/fonts/fontawesome-webfont.woff?v=4.6.2
/css/theme-kobo.css
/css/theme-kobo.print.css
/css/error.css
/css/theme-formhub.css
/css/theme-grid.css
/css/theme-plain.css
/css/theme-formhub.print.css
/css/theme-grid.print.css
/css/theme-plain.print.css
/locales/build/en/translation-combined.json
/images/offline-enabled.png
/js/build/ie11-polyfill.min.js
/js/build/enketo-webform-dev-bundle.js
/js/build/enketo-offline-fallback-dev-bundle.js
/x/

FALLBACK:
/x /offline
/_ /offline

NETWORK:
*

That entry is there because of

// add explicit entries in case user never lands on URL without querystring
// otherwise they may never get added as a Master entry
MartijnR commented 6 years ago

The warning is not the reason for the application cache failure (it's related to the audio file in the widgets form, and can probably be ignored).

MartijnR commented 6 years ago

Failures caused by:

MartijnR commented 6 years ago

Ok, the issue is really only the fact the offline-capable icon is not shown on Firefox sometimes. It still loads offline.

Have not figured out how to consistently reproduce the icon issue.