Skip to content

Commit e4b4537

Browse files
authored
Update Program.cs
1 parent 6404b68 commit e4b4537

1 file changed

Lines changed: 1 addition & 15 deletions

File tree

Program.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,7 @@
1414
//Enable is a security risk but website is much faster
1515
//Risk is when using cookies
1616
//https://en.wikipedia.org/wiki/CRIME
17-
builder.Services.AddResponseCompression(o =>
18-
{
19-
o.EnableForHttps = true;
20-
o.Providers.Add<BrotliCompressionProvider>();
21-
o.Providers.Add<GzipCompressionProvider>();
22-
o.MimeTypes = ResponseCompressionDefaults.MimeTypes.Concat(new[]
23-
{
24-
"image/svg+xml",
25-
"text/xml",
26-
"text/css",
27-
"application/json",
28-
"text/javascript"
29-
});
30-
31-
});
17+
builder.Services.AddResponseCompression();
3218

3319

3420
var app = builder.Build();

0 commit comments

Comments
 (0)