Skip to content

Support compression for static #2002

@tshemsedinov

Description

@tshemsedinov

Describe the problem

Now we serve uncompressed from memory and from sisk

Describe the solution

Node has built-in Brotli support via zlib and other compressions, need to add configurable compression:
While we load static files into memory we can compress them and store/serve compressed from memory

Alternatives

  • Brotli: zlib.createBrotliCompress()
  • gzip (most compatible) zlib.createGzip()
  • deflate: zlib.createDeflate()
  • zstd (modern, very fast, better ratios than gzip; not native in all browsers yet)

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions