Skip to content

Automatic Body Compression Clarification #14058

Answered by kitsonk
cinolt asked this question in Q&A
Discussion options

You must be logged in to vote

It does not maintain a cache. It would a) be inefficient and b) break the model of the request being handled by the userland code.

The userland code would be significantly slower in a DDOS situation anyway, versus a per response compression.

If we were to implement response caching, it would align to the web platform APIs of Cache and CacheStorage and in those cases we could in theory sideload a compressed body in the response when a cached response was used. In those cases it would be up to the userland code to determine if the cached response is used or not anyway.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cinolt
Comment options

@kitsonk
Comment options

@cinolt
Comment options

Answer selected by cinolt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #14057 on March 21, 2022 06:17.