/asis doesn't respect Accept-Encoding
Opened this issue · 0 comments
dooman87 commented
https://pixboost.com/img/v2/homepage/animation-js.svg - hitting this SVG directly from Chrome will serve gzipped version less than 100Kb
Hitting the same URL from transformimgs will serve uncompressed version ~450Kb:
http://localhost:8080/api/img/https://pixboost.com/img/v2/homepage/animation-js.svg/asis
When implementing:
- Do not forget to add Accept-Encoding into Vary header
- Consider where to server Encoding header into response - probably just proxy