File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed
Frontend/Bones.WebUI/wwwroot Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1818 < link href ="manifest.webmanifest " rel ="manifest " />
1919 < link rel ="apple-touch-icon " sizes ="512x512 " href ="icon-512.png " />
2020 < link rel ="apple-touch-icon " sizes ="192x192 " href ="icon-192.png " />
21-
21+
2222</ head >
2323
2424< body >
5353
5454 < script src ="_content/Bones.WebUI.Leaflet/leafletInterop.js "> </ script >
5555 < script src ="_content/Bones.WebUI.SubtleCrypto/subtleCryptoInterop.js "> </ script >
56-
57- < script > navigator . serviceWorker . register ( 'service-worker.js' ) ; </ script >
56+
57+ < script > navigator . serviceWorker . register ( 'service-worker.js' , { updateViaCache : 'none' } ) ; </ script >
5858 < script type ="module ">
5959 import { BrotliDecode } from './decode.min.js' ;
6060 Blazor . start ( {
Original file line number Diff line number Diff line change @@ -51,15 +51,13 @@ async function onFetch(event) {
5151 cachedResponse = await cache . match ( request ) ;
5252 }
5353
54- // Fix for Cloudflare Pages, see: https://github.com/dotnet/aspnetcore/issues/33872
5554 if ( cachedResponse && cachedResponse . redirected ) {
56- cachedResponse =
57- new Response ( cachedResponse . body ,
58- {
59- headers : cachedResponse . headers ,
60- status : cachedResponse . status ,
61- statusText : cachedResponse . statusText
62- } ) ;
55+ const clonedResponse = cachedResponse . clone ( ) ;
56+ cachedResponse = new Response ( clonedResponse . body , {
57+ headers : clonedResponse . headers ,
58+ status : clonedResponse . status ,
59+ statusText : clonedResponse . statusText
60+ } ) ;
6361 }
6462
6563 return cachedResponse || fetch ( event . request ) ;
You can’t perform that action at this time.
0 commit comments