-
-
Notifications
You must be signed in to change notification settings - Fork 115
Support for static compression? #104
Copy link
Copy link
Closed
Labels
help wantedHelp the community by contributing to this issueHelp the community by contributing to this issuesemver-minorIssue or PR that should land as semver minorIssue or PR that should land as semver minor
Metadata
Metadata
Assignees
Labels
help wantedHelp the community by contributing to this issueHelp the community by contributing to this issuesemver-minorIssue or PR that should land as semver minorIssue or PR that should land as semver minor
Not sure if this is the right place to ask but is it possible to support static compressed files: For example if a request is received for
http://localhost/bundle.jswithAccept-Encoding: brotli, I want to serve the already compressed bundle.js.br instead of compressing bundle.js on the fly. Same ifgzipcompression is requested, I'd want fastify-static to send bundle.js.gz if it exists. For my goal if the pre-compressed file does not exist then I'd want to send the uncompressed file, lack of pre-compressed file would mean that the build system determined that the compressed file was actually larger.Am I correct that for fastify-static to support this it would need to be supported by send? They have a PR to add this feature but it appears to have stalled.