* Enforce HTTPS in ASP.NET Core: Use Status308PermanentRedirect
The previous paragraph says
> Use the fields of the [StatusCodes](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.statuscodes) class for assignments to `RedirectStatusCode`.
But the sample code then uses the status code defined in `System.Net` and a cast to `int`.
* Use Status307TemporaryRedirect in other sample code (Program2.cs)
* RazorPages and MVC Get Starting tutorials VSC improvements
* Expanded changes to version 7-8 of topics
* Apply suggestions from code review
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
* Updated per review feedback
---------
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
* Document CompressionLevel.SmallestSize and actual Gzip/Brotli compression levels
Since [.Net 6](7d527c3368) there has been an additional option: `CompressionLevel.SmallestSize`. And since .Net 7 `Optimal` was [fixed](f281393412) to not mean smallest size anymore but rather a balanced value.
This change is also documents what these abstracted `CompressionLevel` values means for Gzip and Brotli compression libraries, given those are enabled by default. In my case I came to this page wanting to get an Idea of balancing CPU use vs size of the response, as there are plenty of pages online benchmarking zlib vs brotli at all possible levels and cpu types.
* Update aspnetcore/performance/response-compression.md
* Update aspnetcore/performance/response-compression.md
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
* Update aspnetcore/performance/response-compression.md
---------
Co-authored-by: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com>
Co-authored-by: Tom Dykstra <tdykstra@microsoft.com>
* migration to 9
* migration to 9
* migration to 9
* migration to 9
* migration to 9
* migration to 9
* Apply suggestions from code review
Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com>
---------
Co-authored-by: Luke Latham <1622880+guardrex@users.noreply.github.com>