Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to disable GZip compression while keeping Brotli compression #46320

Open
alix-tlse opened this issue Jan 27, 2025 · 2 comments
Open

Unable to disable GZip compression while keeping Brotli compression #46320

alix-tlse opened this issue Jan 27, 2025 · 2 comments
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member

Comments

@alix-tlse
Copy link

The issue

In my environment, I don't need GZip compression, Brotli compression is enough.

I wanted to keep only Brotli compression because it will reduce my compilation time, the disk space of publications, and it's good for the planet...

I've changed my csproj file with :

  <PropertyGroup>
    ...
    <PublishCompressionFormats>brotli</PublishCompressionFormats>
  </PropertyGroup>

But ".gz" files are still created

The source of the problem

<PublishCompressionFormats>$(PublishCompressionFormats);gzip;brotli</PublishCompressionFormats>

The solution

Replace the previous code line by :

<PublishCompressionFormats Condition="'$(PublishCompressionFormats)' == ''">gzip;brotli</PublishCompressionFormats>
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Jan 27, 2025
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

1 similar comment
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@marcpopMSFT marcpopMSFT added the Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

2 participants