You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: aspnetcore/blazor/fundamentals/configuration.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -300,12 +300,12 @@ var hostname = builder.Configuration["HostName"];
300
300
301
301
## Cached configuration
302
302
303
-
Configuration files are cached for offline use. With [Progressive Web Applications (PWAs)](xref:blazor/progressive-web-app), you can only update configuration files when creating a new deployment. Editing configuration files between deployments has no effect because:
303
+
Configuration files are cached for offline use. With [Progressive Web Applications (PWAs)](xref:blazor/progressive-web-app/index), you can only update configuration files when creating a new deployment. Editing configuration files between deployments has no effect because:
304
304
305
305
* Users have cached versions of the files that they continue to use.
306
306
* The PWA's `service-worker.js` and `service-worker-assets.js` files must be rebuilt on compilation, which signal to the app on the user's next online visit that the app has been redeployed.
307
307
308
-
For more information on how background updates are handled by PWAs, see <xref:blazor/progressive-web-app#background-updates>.
308
+
For more information on how background updates are handled by PWAs, see <xref:blazor/progressive-web-app/index#background-updates>.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/host-and-deploy/webassembly/bundle-caching-and-integrity-check-failures.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ To disable integrity checks, add the following to a property group in the Blazor
154
154
`BlazorCacheBootResources` also disables Blazor's default behavior of caching the `.dll`, `.wasm`, and other files based on their SHA-256 hashes because the property indicates that the SHA-256 hashes can't be relied upon for correctness. Even with this setting, the browser's normal HTTP cache may still cache those files, but whether or not this happens depends on your web server configuration and the `cache-control` headers that it serves.
155
155
156
156
> [!NOTE]
157
-
> The `BlazorCacheBootResources` property doesn't disable integrity checks for [Progressive Web Applications (PWAs)](xref:blazor/progressive-web-app). For guidance pertaining to PWAs, see the [Disable integrity checking for PWAs](#disable-integrity-checking-for-pwas) section.
157
+
> The `BlazorCacheBootResources` property doesn't disable integrity checks for [Progressive Web Applications (PWAs)](xref:blazor/progressive-web-app/index). For guidance pertaining to PWAs, see the [Disable integrity checking for PWAs](#disable-integrity-checking-for-pwas) section.
158
158
159
159
We can't provide an exhaustive list of scenarios where disabling integrity checking is required. Servers can answer a request in arbitrary ways outside of the scope of the Blazor framework. The framework provides the `BlazorCacheBootResources` setting to make the app runnable at the cost of *losing a guarantee of integrity that the app can provide*. Again, we don't recommend disabling integrity checking, especially for production deployments. Developers should seek to solve the underlying integrity problem that's causing integrity checking to fail.
@@ -507,7 +507,7 @@ Rename file extensions in the `blazor.boot.json` file:
507
507
sed -i 's/\.dll"/.bin"/g' {PATH}/blazor.boot.json
508
508
```
509
509
510
-
If service worker assets are also in use because the app is a [Progressive Web App (PWA)](xref:blazor/progressive-web-app):
510
+
If service worker assets are also in use because the app is a [Progressive Web App (PWA)](xref:blazor/progressive-web-app/index):
511
511
512
512
```console
513
513
sed -i 's/\.dll"/.bin"/g' {PATH}/service-worker-assets.js
@@ -522,12 +522,12 @@ To address the compressed `blazor.boot.json` file, adopt either of the following
522
522
* Recompress the updated `blazor.boot.json` file, producing new `blazor.boot.json.gz` and `blazor.boot.json.br` files. (*Recommended*)
523
523
* Remove the compressed `blazor.boot.json.gz` and `blazor.boot.json.br` files. (*Compression is disabled with this approach.*)
524
524
525
-
For a [Progressive Web App (PWA)](xref:blazor/progressive-web-app)'s compressed `service-worker-assets.js` file, adopt either of the following approaches:
525
+
For a [Progressive Web App (PWA)](xref:blazor/progressive-web-app/index)'s compressed `service-worker-assets.js` file, adopt either of the following approaches:
526
526
527
527
* Recompress the updated `service-worker-assets.js` file, producing new `service-worker-assets.js.br` and `service-worker-assets.js.gz` files. (*Recommended*)
528
528
* Remove the compressed `service-worker-assets.js.gz` and `service-worker-assets.js.br` files. (*Compression is disabled with this approach.*)
529
529
530
-
To automate the extension change on Windows in .NET 6/7, the following approach uses a PowerShell script placed at the root of the project. The following script, which disables compression, is the basis for further modification if you wish to recompress the `blazor.boot.json` file and `service-worker-assets.js` file if the app is a [Progressive Web App (PWA)](xref:blazor/progressive-web-app). The path to the [`publish` folder](xref:blazor/host-and-deploy/index#default-publish-locations) is passed to the script when it's executed.
530
+
To automate the extension change on Windows in .NET 6/7, the following approach uses a PowerShell script placed at the root of the project. The following script, which disables compression, is the basis for further modification if you wish to recompress the `blazor.boot.json` file and `service-worker-assets.js` file if the app is a [Progressive Web App (PWA)](xref:blazor/progressive-web-app/index). The path to the [`publish` folder](xref:blazor/host-and-deploy/index#default-publish-locations) is passed to the script when it's executed.
If service worker assets are also in use because the app is a [Progressive Web App (PWA)](xref:blazor/progressive-web-app), add the following commands:
542
+
If service worker assets are also in use because the app is a [Progressive Web App (PWA)](xref:blazor/progressive-web-app/index), add the following commands:
Copy file name to clipboardExpand all lines: aspnetcore/blazor/hosting-models.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,7 @@ When a standalone Blazor WebAssembly app uses a backend ASP.NET Core app to serv
101
101
102
102
:::moniker range=">= aspnetcore-6.0"
103
103
104
-
A Blazor WebAssembly app built as a [Progressive Web App (PWA)](xref:blazor/progressive-web-app) uses modern browser APIs to enable many of the capabilities of a native client app, such as working offline, running in its own app window, launching from the host's operating system, receiving push notifications, and automatically updating in the background.
104
+
A Blazor WebAssembly app built as a [Progressive Web App (PWA)](xref:blazor/progressive-web-app/index) uses modern browser APIs to enable many of the capabilities of a native client app, such as working offline, running in its own app window, launching from the host's operating system, receiving push notifications, and automatically updating in the background.
Copy file name to clipboardExpand all lines: aspnetcore/blazor/progressive-web-app/index.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ monikerRange: '>= aspnetcore-3.1'
6
6
ms.author: wpickett
7
7
ms.custom: mvc
8
8
ms.date: 11/12/2024
9
-
uid: blazor/progressive-web-app
9
+
uid: blazor/progressive-web-app/index
10
10
---
11
11
# ASP.NET Core Blazor Progressive Web Application (PWA)
12
12
@@ -159,13 +159,13 @@ In the app's `wwwroot/index.html` file:
159
159
160
160
When visiting an app created using the PWA template, users have the option of installing the app into their OS's start menu, dock, or home screen. The way this option is presented depends on the user's browser. When using desktop Chromium-based browsers, such as Edge or Chrome, an **Add** button appears within the URL bar. After the user selects the **Add** button, they receive a confirmation dialog:
161
161
162
-

162
+

163
163
164
164
On iOS, visitors can install the PWA using Safari's **Share** button and its **Add to Homescreen** option. On Chrome for Android, users should select the **Menu** button in the upper-right corner, followed by **Add to Home screen**.
165
165
166
166
Once installed, the app appears in its own window without an address bar:
167
167
168
-

168
+

169
169
170
170
To customize the window's title, color scheme, icon, or other details, see the `manifest.json` file in the project's `wwwroot` directory. The schema of this file is defined by web standards. For more information, see [MDN web docs: Web App Manifest](https://developer.mozilla.org/docs/Web/Manifest).
171
171
@@ -185,18 +185,18 @@ To see how offline support works:
185
185
1. Deploy the app to a server that supports HTTPS, and access the app in a browser at its secure HTTPS address.
186
186
1. Open the browser's dev tools and verify that a *Service Worker* is registered for the host on the **Application** tab:
187
187
188
-

188
+

189
189
190
190
1. Reload the page and examine the **Network** tab. **Service Worker** or **memory cache** are listed as the sources for all of the page's assets:
191
191
192
-

192
+

193
193
194
194
1. To verify that the browser isn't dependent on network access to load the app, either:
195
195
196
196
* Shut down the web server and see how the app continues to function normally, which includes page reloads. Likewise, the app continues to function normally when there's a slow network connection.
197
197
* Instruct the browser to simulate offline mode in the **Network** tab:
198
198
199
-

199
+

200
200
201
201
Offline support using a service worker is a web standard, not specific to Blazor. For more information on service workers, see [MDN web docs: Service Worker API](https://developer.mozilla.org/docs/Web/API/Service_Worker_API). To learn more about common usage patterns for service workers, see [Google Web: The Service Worker Lifecycle](https://web.dev/service-worker-lifecycle/).
202
202
@@ -358,7 +358,7 @@ What surprises many developers is that, even when this update completes, it does
358
358
359
359
This commonly troubles developers who are trying to test updates to their service worker or offline cached resources. If you check in the browser's developer tools, you may see something like the following:
360
360
361
-

361
+

362
362
363
363
For as long as the list of "clients," which are tabs or windows displaying your app, is nonempty, the worker continues waiting. The reason service workers do this is to guarantee consistency. Consistency means that all resources are fetched from the same atomic cache.
0 commit comments