-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] implement browser cache busting for JSHost.ImportAsync
#74815
Comments
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsSimilar to what Blazor does or with file hash in
|
Fingerprinting is handled by the static web assets. We should probably add modules for |
JSHost.ImportAsync could be any URL, not just current project. Users could already add |
Does it block us from using it through boot config? Just omit the fingerprinting of course, but it could be the place to provide integrity. |
If there was such section in boot config, how would the hashes get there. We are not going to download from CDN in order to calculate the hash, right ? Should we have MSbuild item for adding records there and let user to drive it ? The But I feel this may be overstepping our responsibilities ? |
That dynamic import doesn't support integrity is good point. My though was that it would be user job to fill msbuild item with integrity. For CDNs I think it's their job to provide good caching story and I would let user to do it manually if needed (appending query string). For local scripts, SWA will put fingerprint into assets with name like |
Moving to .NET 9 as the underlaying issue has moved dotnet/aspnetcore#47000 |
JSHost.ImportAsync
Similar to what Blazor does or with file hash in
mono-config.json
applied as query string.Also cache busting for
JSHost.ImportAsync
The text was updated successfully, but these errors were encountered: