Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

gzip for update xhr calls? #103

Open
brandonsturgeon opened this issue Dec 13, 2018 · 0 comments
Open

gzip for update xhr calls? #103

brandonsturgeon opened this issue Dec 13, 2018 · 0 comments

Comments

@brandonsturgeon
Copy link

brandonsturgeon commented Dec 13, 2018

Is there any way to configure jetty to compress the /up responses (which are only text) with gzip?

They're the biggest and slowest calls on the page, and I know it only happens a few times a second, but we could achieve notable compression with gzip.

Most browsers will send these headers along which, if we can modify jetty here, should make this pretty easy:

Accept: application/json
Accept-Encoding: gzip, deflate

I'm not a Java dev so please forgive me, but I found this old article which could demonstrate how to enable gzip compression if we're actually able to configure it at all: https://blog.max.berger.name/2010/01/jetty-7-gzip-filter.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant