Commit aed1ba49 authored by Jasper Chapman-Black's avatar Jasper Chapman-Black Committed by Commit Bot

SuperSize: Cache Caspian WebAssembly assets in ServiceWorker

Since caspian_web.wasm has grown to about 8MB, it's probably a good idea
to cache it via the ServiceWorker.

Change-Id: I60f115d8fe2f557d83b7824090330eec1b07c395
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1949068Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
Commit-Queue: Jasper Chapman-Black <jaspercb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721124}
parent d44d94c6
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
const cacheName = '{{cache_hash}}'; const cacheName = '{{cache_hash}}';
const filesToCache = [ const filesToCache = [
'caspian_web.wasm.map',
'caspian_web.js',
'caspian_web.wasm',
'favicon.ico', 'favicon.ico',
'viewer.html', 'viewer.html',
'infocard-ui.js', 'infocard-ui.js',
...@@ -19,6 +22,7 @@ const filesToCache = [ ...@@ -19,6 +22,7 @@ const filesToCache = [
'state.js', 'state.js',
'tree-ui.js', 'tree-ui.js',
'tree-worker.js', 'tree-worker.js',
'tree-worker-wasm.js',
]; ];
// On install, cache the items in the `filesToCache` list // On install, cache the items in the `filesToCache` list
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment