Skip to content

Commit 202d8b2

Browse files
authored
Merge pull request #6707 from umbraco/upgrade-article
Added information about precompresssed files
2 parents a759772 + 0d5ca76 commit 202d8b2

File tree

1 file changed

+10
-0
lines changed
  • 15/umbraco-cms/fundamentals/setup/upgrading/version-specific

1 file changed

+10
-0
lines changed

15/umbraco-cms/fundamentals/setup/upgrading/version-specific/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,16 @@ You can now re-enable precompiled views and rebuild your site.
5454

5555
If you have custom C# code that references the models this will also not build. You can either comment out your custom code temporarily until the models have been rebuilt or fix the models manually. To fix the models manually you need to find and replace `IPublishedSnapshotAccessor` with `IPublishedContentTypeCache`.
5656

57+
**Handling Precompressed Files**
58+
59+
When upgrading from Umbraco 14 to 15, you might notice that `JavaScript` and `CSS` files are automatically precompressed, adding additional `.br` and `.gz` files. This behavior is introduced in ASP.NET Core version 9, where static files are fingerprinted and precompressed by default at build and publish time.
60+
61+
To disable this feature, set `<CompressionEnabled>false</CompressionEnabled>` in your project file. If you are using Umbraco's templates - `dotnet new umbraco`, this setting is already included.
62+
63+
Set `<CompressionEnabled>false</CompressionEnabled>` in your Umbraco project to avoid compressing backoffice files unnecessarily. For your own web project, set it to `true` to improve performance by serving precompressed assets to users.
64+
65+
For more details, see the [ASP.NET Core Documentation](https://learn.microsoft.com/en-us/aspnet/core/migration/80-90?view=aspnetcore-9.0&tabs=visual-studio#replace-usestaticfiles-with-mapstaticassets).
66+
5767
</details>
5868

5969
<details>

0 commit comments

Comments
 (0)