Optionalassetshow the worker treats same-origin subresources; default cache
Optionalbeaconssame-origin POST paths the worker queues and flushes in one request
Optionalcataloguethe most compressed bytes of entries one catalogue bundle may carry; default 32 KiB
Optionalcataloguemeasures an entry's compressed bytes for the catalogue; default Brotli, gzip where the runtime has no Brotli stream
Optionalcdnserve the page runtime from a CDN with SRI; omitted, it is served from
/.spool/<version>/client.js. url defaults to this version's cdn.drupflare.com build,
whose integrity is in the release notes and in dist/cdn/manifest.json.
Optionalcollectorscross-origin analytics collectors the worker holds and delivers later
OptionalidentityOptionallogoutsame-origin paths whose request ends the session; the worker wipes the principal store first
Optionalmeterreads a millisecond clock for work; default performance.now, which is elapsed time and not CPU
Optionalmodethe mode for routes that do not name one; default serve. shadow never serves locally
Optionalprovisionpriors the worker uses before its own telemetry exists, and the server uses to leave out an artifact whose transfer its expected reuse does not repay
Optionalshadowthe share of views, 0 to 1, that run in shadow while the mode is serve; default 0
OptionalsinkOptionalthirdthe opt-in worker cache for versioned cross-origin files
Optionalviewswhether the worker queues a spool.view per page view; default true
Optionalworkrecords the time each request took, by route; read it with work.samples()
Optionalworkera bundled worker to serve in place of the embedded one, such as a bundle of serve(config, renderers) from @drupflare/spool/sw; it finds the config in self.__SPOOL_CONFIG__
what
createSpooltakes