-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve precompressed *.gz file #53
Comments
I will take this. |
It's okay to use middleware to compress on fly(low level compression ratio for more speed). But if possible, it better to use pre-compressed file provieded by leptos build(high level compression ratio). I would consider this issue low priority. |
You can check |
I mean this section (about pre compressed) |
Maybe we should utilize GitHub's issue tagging system |
For |
I would work on a example accommodating our use case. Such that it includes those logic:
|
After some offline discussion, we conclude that we could have pre-compressed enabled with Reason for such decision:
Also of note, there is a pull request attending to add pre-compressed static file support, but leave in review for about 1.5 years. |
When using leptos-build, run with
--pre-compress
will compress all static wasm/js/css...For example:
By just serving compressed content, we can save about 70% of bandwidth.
However,
leptos-build
won't help you serving them, you need to write them in actual code.The text was updated successfully, but these errors were encountered: