WIP: Add gzip compression#302
No reviewers
Labels
No labels
breaking
bug
build_pr_image
documentation
d̶u̶p̶l̶i̶c̶a̶t̶e̶
feature
good first issue
improvement
i̶n̶v̶a̶l̶i̶d̶
open questions
performance
refactor
research required
No milestone
No project
No assignees
2 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/pages-server!302
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "video-prize-ranch/pages-server:main"
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?
Fixes #223
Responses are compressed with gzip and cached.
Thank you for the contribution, I've marked it as "WIP" due to #301 breaking most of the changes, and also because I think that this will still need some discussion specifically on caching of compressed contents.
This is as of now uncovers an existing bug that's unfortunately a DoS vector, as the whole file is loaded at once into memory without a size limit, instead of streaming its contents. #301 will change quite some things that are touched in this PR, including that DoS issue, and then streamed Gzip and caching Gzip-compressed responses and thus saving CPU for often accessed resources should become a lot easier to implement.
Add gzip compressionto WIP: Add gzip compressionView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.