Add Gzip and prop to disable compression (#18555)
parent
65fb47f79f
commit
457473bf4a
|
@ -5,7 +5,7 @@ description: Learn how to host and deploy a Blazor app using ASP.NET Core, Conte
|
|||
monikerRange: '>= aspnetcore-3.1'
|
||||
ms.author: riande
|
||||
ms.custom: mvc
|
||||
ms.date: 05/27/2020
|
||||
ms.date: 05/28/2020
|
||||
no-loc: [Blazor, "Identity", "Let's Encrypt", Razor, SignalR]
|
||||
uid: host-and-deploy/blazor/webassembly
|
||||
---
|
||||
|
@ -23,9 +23,20 @@ The following deployment strategies are supported:
|
|||
* The Blazor app is served by an ASP.NET Core app. This strategy is covered in the [Hosted deployment with ASP.NET Core](#hosted-deployment-with-aspnet-core) section.
|
||||
* The Blazor app is placed on a static hosting web server or service, where .NET isn't used to serve the Blazor app. This strategy is covered in the [Standalone deployment](#standalone-deployment) section, which includes information on hosting a Blazor WebAssembly app as an IIS sub-app.
|
||||
|
||||
## Brotli precompression
|
||||
## Precompression
|
||||
|
||||
When a Blazor WebAssembly app is published, the output is precompressed using the [Brotli compression algorithm](https://tools.ietf.org/html/rfc7932) at the highest level to reduce the app size and remove the need for runtime compression.
|
||||
When a Blazor WebAssembly app is published, the output is precompressed to reduce the app's size and remove the need for runtime compression. The following compression algorithms are used:
|
||||
|
||||
* [Brotli](https://tools.ietf.org/html/rfc7932) (highest level)
|
||||
* [Gzip](https://tools.ietf.org/html/rfc1952))
|
||||
|
||||
To disable compression, add the `BlazorEnableCompression` MSBuild property to the app's project file and set the value to `false`:
|
||||
|
||||
```xml
|
||||
<PropertyGroup>
|
||||
<BlazorEnableCompression>false</BlazorEnableCompression>
|
||||
</PropertyGroup>
|
||||
```
|
||||
|
||||
For IIS *web.config* compression configuration, see the [IIS: Brotli and Gzip compression](#brotli-and-gzip-compression) section.
|
||||
|
||||
|
|
Loading…
Reference in New Issue