Skip to content

Commit

Permalink
add ResponseCompression
Browse files Browse the repository at this point in the history
  • Loading branch information
WeihanLi committed Mar 13, 2020
1 parent ee15fcc commit 0eb59ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ActivityReservation/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public void ConfigureServices(IServiceCollection services)
});

services.AddResponseCaching();
services.AddResponseCompression(options =>
{
options.EnableForHttps = true;
});

services.AddControllersWithViews(options =>
{
Expand Down

0 comments on commit 0eb59ab

Please sign in to comment.