Add compression via content-encoding #12
Loading…
Reference in a new issue
No description provided.
Delete branch "content-encoding-compression"
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?
This adds compression if the client has a compatible
Accept-Encoding:
header.For the endpoint https://builds.robur.coop/job/caldav/build/6fba938d-d651-419c-b1b5-43523572e2ff/exec (~34 MB) it reduces the transfered data down to ~13 MB. However, locally, it increases the transfer time from ~0.2 s to ~2.0s! I notice that "deflate" is chosen despite curl offering "deflate, gzip, [...]". If I manually set the header to gzip only the transfer time is down at ~1.8s. I'm not sure why it adds so much overhead. With this I am unsure if it's worth it.
Ah! The added timing is not unreasonable: