Skip to content

Allow disabling static assets compression for specific files #62522

@rgroenewoudt

Description

@rgroenewoudt

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

We are noticing that all files in wwwroot age have an additional compressed version in .gz & .br due static assets compression.
However robots.txt also receives a .br and .gz, which isn't needed as the compressed version is larger than the original version.

Describe the solution you'd like

I would like the ability to disable static assets compression for a specific file.
Perhaps ASP.NET should also check if the compressed file is actually smaller than the original file.

Additional context

Background:
We are using the combination Angular with ASP.NET Core and are building Angular first and copying into wwwroot directory to build ASP.NET project next.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions