We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf9018a commit ec8206aCopy full SHA for ec8206a
src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts
@@ -11,6 +11,10 @@ export class WebAssemblyResourceLoader {
11
credentials: 'include'
12
});
13
14
+ // Define a separate cache for each base href, so we're isolated from any other
15
+ // Blazor application running on the same origin. We need this so that we're free
16
+ // to purge from the cache anything we're not using and don't let it keep growing,
17
+ // since we don't want to be worst offenders for space usage.
18
const relativeBaseHref = document.baseURI.substring(document.location.origin.length);
19
const cacheName = `blazor-resources-${relativeBaseHref}`;
20
return new WebAssemblyResourceLoader(
0 commit comments