Skip to content
Snippets Groups Projects
Commit a1bb61b5 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

fixes no offline fallback page bug

parent 61e92b39
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -134,7 +134,7 @@ function networkFirstFetch(event) {
function fromCache(request) {
// Check to see if you have it in the cache
// Return response
// If not in the cache, then return error page
// If not in the cache, then return offline fallback page
return caches.open(CACHE).then(function (cache) {
return cache.match(request).then(function (matching) {
if (!matching || matching.status === 404) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment