Skip to content

Double-compression when trying to host pre-compressed (.gz, .br) files via MapStaticAssets #60558

Open
@Fydar

Description

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When trying to host "pre-compressed" files via MapStaticAssets the server seems to compress the file twice. It doesn't know how to handle the file.

I'm trying to host built Unity game artefacts which I would much rather store in a compressed format on disk.

Expected Behavior

For pre-compressed files to be able to be hosted via MapStaticAssets, whether under the file name including the compression format (.br and .gz) or under the non-compressed name, I don't know.

Steps To Reproduce

Attempt to host a file in MapStaticAssets that is pre-compressed.

Exceptions (if any)

No response

.NET Version

.NET SDK: 9.0.200

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.Needs: Author FeedbackThe author of this issue needs to respond in order for us to continue investigating this issue.area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions