about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/service_worker/entry.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/service_worker/entry.js b/app/javascript/mastodon/service_worker/entry.js
index 5ad03caf2..9a3911b2a 100644
--- a/app/javascript/mastodon/service_worker/entry.js
+++ b/app/javascript/mastodon/service_worker/entry.js
@@ -30,8 +30,8 @@ self.addEventListener('fetch', function(event) {
 
     event.respondWith(asyncResponse.then(response => {
       if (response.ok) {
-        return asyncCache.then(cache => cache.put('/', response))
-                         .then(() => response.clone());
+        return asyncCache.then(cache => cache.put('/', response.clone()))
+                         .then(() => response);
       }
 
       throw null;