···11-import {
22- init,
33- withCleanup,
44- withFetchStrategy,
55- withPrecache,
66- withUpdatePolling,
77-} from '@civility/workers'
88-99-init([
1010- withPrecache([
1111- '/',
1212- '/index.html',
1313- '/static/civility.css',
1414- '/static/theme.css',
1515- '/dist/index.js',
1616- '/dist/meta.json',
1717- '/manifest.json',
1818- ]),
1919- withCleanup(),
2020- withUpdatePolling(),
2121- withFetchStrategy(),
2222-])
11+/**
22+ * This is a hack to get around the default of workers; they can only cache
33+ * files under their own scope, and so we want to place `worker.js` at app root.
44+ *
55+ * If your file server has the correct headers, you can remove this file, and
66+ * update the client init in `index.ts` to point to the new url directly:
77+ *
88+ * @example
99+ * ```js
1010+ * import { init } from '@civility/workers'
1111+ * init('./dist/worker.js')
1212+ * ```
1313+ */
1414+import './dist/worker.js'