How can I enable GZIP Compression for an umbraco site hosted on Azure?
j
Jemayn
09/16/2024, 11:49 AM
Haven't specifically done this for a while, but it shouldn't require any Umbraco specific settings. So if you look up how to do it for the .NET version you are on it would be the same
m
martintho
09/16/2024, 1:33 PM
@Debasish You should be able to add the following:
app.UseResponseCompression();
d
dawoe21
09/17/2024, 6:23 AM
if you are running on a windows app service I don't think you need to do anything special, if you are running on linux you will need to add
`app.UserResonseCompression `in your program.cs before
await app.BootUmbracoAsync();
d
Debasish
09/18/2024, 8:15 AM
Thank you @dawoe21@Jemayn@martintho for your inputs . Yes it does seem like my site has GZIP enabled as I can see under the network tab that content-encoding is set to gzip