mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-08 16:49:02 +03:00
[GH-ISSUE #544] Support serving of pre-GZIP encoded files #319
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gphg on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/544
Specific Demand
Some files are pre-gzipped by users. How to serve these without have to decompress it?
Implement Suggestion
build.js.gz->build.jsindex.html.gz->index.htmlI can't go into the technical details, but this can be done on Apache and Nginx http server with extra configurations.
@sigoden commented on GitHub (Feb 20, 2025):
We will not support this feature. While I understand the use case,
dufsisn't really optimized for production environments. I'd prefer to keep it simple and focused on its core use case (quick and easy file sharing).If you need to serve pre-gzipped files in a production setting, I highly recommend using a more robust web server like Apache or Nginx. They are designed for this kind of thing and offer more comprehensive configuration options to handle it efficiently. They can be configured to automatically serve the
.gzversion if the client supports gzip and the original file doesn't exist, which provides a much cleaner and more flexible solution.