]> cat aescling's git repositories - mastodon.git/commit
Clone response before put it to the cache (#6932)
authorunarist <m.unarist@gmail.com>
Tue, 27 Mar 2018 13:18:35 +0000 (22:18 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 27 Mar 2018 13:18:35 +0000 (15:18 +0200)
commitf5ed5f386020a08e8a659f4a6d25d2b875852be8
tree43014a3cb070aad8fa5f7aff9aa520a027f97617
parent2f3ac14a434c773577771b74292aa313d57db3c9
Clone response before put it to the cache (#6932)

`Response.prototype.clone()` must be called before the response used.

This fixes an error from ServiceWorker and failing to load image when the
image is not cached.
app/javascript/mastodon/service_worker/entry.js