diff --git a/.github/workflows/GithubActionsRelease.yml b/.github/workflows/GithubActionsRelease.yml index bfd7821..1f18782 100644 --- a/.github/workflows/GithubActionsRelease.yml +++ b/.github/workflows/GithubActionsRelease.yml @@ -56,11 +56,10 @@ jobs: with: persist-credentials: false - - name: Use prelease dotnet - uses: actions/setup-dotnet@v2 + - name: Use dotnet + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' - include-prerelease: true - name: Get the version run: echo "version=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV diff --git a/.github/workflows/GithubActionsWIP.yml b/.github/workflows/GithubActionsWIP.yml index fdbe25d..479231f 100644 --- a/.github/workflows/GithubActionsWIP.yml +++ b/.github/workflows/GithubActionsWIP.yml @@ -36,10 +36,9 @@ jobs: persist-credentials: false - name: Use prelease dotnet - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v4 with: dotnet-version: '8.x' - include-prerelease: true - name: Build CompressedStaticFiles.AspNetCore 🔧 run: dotnet build ${{env.projectCSFB}} --configuration ${{env.buildConfiguration}} --version-suffix ${{env.ciSuffix}} diff --git a/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj b/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj index 1ed723f..84f3a23 100644 --- a/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj +++ b/CompressedStaticFiles.AspNet.Tests/CompressedStaticFiles.AspNet.Tests.csproj @@ -6,16 +6,16 @@ - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/CompressedStaticFiles.AspNet/AlternativeImageFile.cs b/CompressedStaticFiles.AspNet/AlternativeImageFile.cs index e6e3b33..7bae2cf 100644 --- a/CompressedStaticFiles.AspNet/AlternativeImageFile.cs +++ b/CompressedStaticFiles.AspNet/AlternativeImageFile.cs @@ -50,7 +50,7 @@ public void Apply(HttpContext context) context.Request.Path = new PathString(matchedPath); //Ensure that a caching proxy knows that it should cache based on the Accept header. - context.Response.Headers.Add("Vary", "Accept"); + context.Response.Headers["Vary"] = "Accept"; } diff --git a/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs b/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs index 8dbf568..565f6c4 100644 --- a/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs +++ b/CompressedStaticFiles.AspNet/CompressedAlternativeFile.cs @@ -55,7 +55,7 @@ public void Prepare(IContentTypeProvider contentTypeProvider, StaticFileResponse if (contentTypeProvider.TryGetContentType(staticFileResponseContext.File.PhysicalPath.Remove( staticFileResponseContext.File.PhysicalPath.Length - fileExtension.Length, fileExtension.Length), out var contentType)) staticFileResponseContext.Context.Response.ContentType = contentType; - staticFileResponseContext.Context.Response.Headers.Add("Content-Encoding", new[] { compressionType }); + staticFileResponseContext.Context.Response.Headers["Content-Encoding"] = new[] { compressionType }; } } } diff --git a/ReleaseNotes.md b/ReleaseNotes.md index e6ee1bf..afbc2cd 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -5,6 +5,19 @@ title: ReleaseNotes # Release Notes +#### [2.1.0](https://github.com/Material-Blazor/CompressedStaticFiles.AspNet/tree/2.1.0) + +Released 2024-03-13 + +**Updates** +- .Net 8.0.3 +- Dependabot updates +- Support added for zstd compression (Thanks to a contribution from Jeremy Kescher) + +**Breaking Changes** + +**Known issues** + #### [2.0.0](https://github.com/Material-Blazor/CompressedStaticFiles.AspNet/tree/2.0.0) Released 2023-11-14