From aad0063653a4b03869c353b4f24ae862199c8edb Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 18 Oct 2015 11:28:48 -0400 Subject: [PATCH] Add fallback namespace to app cache manifest Ref #276 --- assets/javascripts/templates/pages/offline_tmpl.coffee | 3 +-- views/manifest.erb | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/templates/pages/offline_tmpl.coffee b/assets/javascripts/templates/pages/offline_tmpl.coffee index b862e1e7..54a6bfa7 100644 --- a/assets/javascripts/templates/pages/offline_tmpl.coffee +++ b/assets/javascripts/templates/pages/offline_tmpl.coffee @@ -42,8 +42,7 @@ app.templates.offlinePage = (docs) -> """ canICloseTheTab = -> if app.AppCache.isEnabled() - """ Yes! Even offline, you can open a new tab, go to devdocs.io, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand).
- Note that loading any page other than devdocs.io directly won't work (due to limitations in AppCache). """ + """ Yes! Even offline, you can open a new tab, go to devdocs.io, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """ else if app.mozApp """ Yes! Even offline, you can open the app and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """ else diff --git a/views/manifest.erb b/views/manifest.erb index 9ac130d8..870b0381 100644 --- a/views/manifest.erb +++ b/views/manifest.erb @@ -20,6 +20,8 @@ CACHE: <%= doc_index_urls.join "\n" %> NETWORK: +/s/ * FALLBACK: +/ /