Skip to content

load .br,use no-cache,but why? #34205

@bxjg1987

Description

@bxjg1987

Description

.net9

app.MapStaticAssets();

const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });

why use cache: 'no-cache'

Page URL

https://learn.microsoft.com/zh-cn/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-9.0#compression

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/host-and-deploy/webassembly.md

Document ID

250e7458-3c1d-0117-261d-c03ac136f16a

Article author

@guardrex

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions