Skip to content

Dev server ignores assets compression settings #4158

@hellozyemlya

Description

@hellozyemlya

Environment

bleeding edge

Reproduction

just run dev server with "publicAssets" section, try to download large zip archive, it will be painfully slow

Describe the bug

When downloading large zip files in dev server served from "publicAssets" it always apply compresison, even if "compressPublicAssets" is false, even for zip or other files.

I guess several solutions can be applied:

  • respect compressPublicAssets and do not compress files at all in dev mode
  • if files recognized as archives, do not compress them regardless of headers passed

Additional context

thanks for nice server :)

Logs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions