Skip to content
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ async function importDotnetJs(startOptions: Partial<WebAssemblyStartOptions>): P
// Allow overriding the URI from which the dotnet.*.js file is loaded
if (startOptions.loadBootResource) {
const resourceType: WebAssemblyBootResourceType = 'dotnetjs';
const customSrc = startOptions.loadBootResource(resourceType, 'dotnet.js', src, '', 'js-module-dotnet');
const customSrc = startOptions.loadBootResource(resourceType, 'dotnet.js', `${src}?v=${Date.now()}`, '', 'js-module-dotnet');
if (typeof (customSrc) === 'string') {
src = customSrc;
} else if (customSrc) {
Expand All @@ -179,7 +179,7 @@ async function importDotnetJs(startOptions: Partial<WebAssemblyStartOptions>): P
}
}

const absoluteSrc = (new URL(src, document.baseURI)).toString();
const absoluteSrc = (new URL(`${src}?v=${Date.now()}`, document.baseURI)).toString();
return await import(/* webpackIgnore: true */ absoluteSrc);
}

Expand Down
Loading