Skip to content

Commit

Permalink
Add context on calling fetch with no-cache (#34304)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Dec 6, 2024
1 parent cbf596a commit e942dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aspnetcore/blazor/host-and-deploy/webassembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ In the `wwwroot/index.html` file, set `autostart` to `false` on Blazor's `<scrip
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
```

After Blazor's `<script>` tag and before the closing `</body>` tag, add the following JavaScript code `<script>` block.
After Blazor's `<script>` tag and before the closing `</body>` tag, add the following JavaScript code `<script>` block. The following function calls `fetch` with [`cache: 'no-cache'`](https://developer.mozilla.org/docs/Web/API/Request/cache#value) to keep the browser's cache updated.

:::moniker range=">= aspnetcore-8.0"

Expand Down

0 comments on commit e942dec

Please sign in to comment.