File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -140,22 +140,22 @@ self.addEventListener("activate", (event) => {
140140} ) ;
141141
142142// eslint-disable-next-line no-restricted-globals
143- self . addEventListener ( "fetch" , ( event ) => {
144- const cacheUrls = [
145- process . env . NEXT_PUBLIC_VECTOR_TILES_ENDPOINT ,
146- process . env . NEXT_PUBLIC_SO_PDF_ENDPOINT ,
147- ] ;
148- const shouldFetchFromCache = cacheUrls . some (
149- ( url ) => url && event . request . url . startsWith ( url ) ,
150- ) ;
151- if ( shouldFetchFromCache ) {
152- event . respondWith (
153- caches
154- . match ( event . request )
155- . then ( ( response ) => response ?? fetch ( event . request ) ) ,
156- ) ;
157- }
158- } ) ;
143+ // self.addEventListener("fetch", (event) => {
144+ // const cacheUrls = [
145+ // process.env.NEXT_PUBLIC_VECTOR_TILES_ENDPOINT,
146+ // process.env.NEXT_PUBLIC_SO_PDF_ENDPOINT,
147+ // ];
148+ // const shouldFetchFromCache = cacheUrls.some(
149+ // (url) => url && event.request.url.startsWith(url),
150+ // );
151+ // if (shouldFetchFromCache) {
152+ // event.respondWith(
153+ // caches
154+ // .match(event.request)
155+ // .then((response) => response ?? fetch(event.request)),
156+ // );
157+ // }
158+ // });
159159
160160const serwist = new Serwist ( {
161161 clientsClaim : true ,
You can’t perform that action at this time.
0 commit comments