lume icon indicating copy to clipboard operation
lume copied to clipboard

Serve precompressed files

Open oscarotero opened this issue 1 year ago • 0 comments

Enter your suggestions in details:

The Lume Server could have an option (or a middleware) to allow to serve precompressed files (for example, the file /index.html.gz for gzip encoding, /index.html.zst for zstd ((Zstandard) ) encoding and /index.html.br for br (Brotli) encoding.

References:

  • https://nginx.org/en/docs/http/ngx_http_gzip_static_module.html
  • https://caddyserver.com/docs/caddyfile/directives/file_server#precompressed
  • https://hono.dev/docs/getting-started/deno#precompressed
  • https://github.com/fastify/fastify-static?tab=readme-ov-file#precompressed
  • https://github.com/koajs/static?tab=readme-ov-file#options
  • https://kit.svelte.dev/docs/adapter-static#options-precompress

oscarotero avatar Sep 12 '24 17:09 oscarotero