Skip to content

Static embed files should not be decompress and compress #7107

Closed
@lunny

Description

@lunny

As I said on #7080 (comment) , currently we use http.FileSystem to open a embed file on memory, that will decompress from a gzip compressed memory file and then we serve it as a http request and compress it(maybe). So I think that we can provide the gzip compressed file directly.

From vfsgen, we could detect if the File is httpgzip.NotWorthGzipCompressing or httpgzip.GzipByter to do that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtype/enhancementAn improvement of existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions