Skip to content

Commit aad0063

Browse files
committed
Add fallback namespace to app cache manifest
Ref freeCodeCamp#276
1 parent b69adb6 commit aad0063

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

assets/javascripts/templates/pages/offline_tmpl.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ app.templates.offlinePage = (docs) -> """
4242

4343
canICloseTheTab = ->
4444
if app.AppCache.isEnabled()
45-
""" Yes! Even offline, you can open a new tab, go to <a href="http://devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand).<br>
46-
Note that loading any page other than <a href="http://devdocs.io">devdocs.io</a> directly won't work (due to limitations in AppCache). """
45+
""" Yes! Even offline, you can open a new tab, go to <a href="http://devdocs.io">devdocs.io</a>, and everything will work as if you were online (provided you installed all the documentations you want to use beforehand). """
4746
else if app.mozApp
4847
""" 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). """
4948
else

views/manifest.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ CACHE:
2020
<%= doc_index_urls.join "\n" %>
2121

2222
NETWORK:
23+
/s/
2324
*
2425

2526
FALLBACK:
27+
/ /

0 commit comments

Comments
 (0)