#1 2019-01-25 15:03:33

jaclas
Member
Registered: 2014-09-12
Posts: 215

Does gzip response work properly?

Maybe I'm wrong, but the server's answer is probably not gzipped. Please look at the headings:

rBUXRwbDCyk1TpagvlzFqmEKSCqrSYvE1l6Mc9Qfx2ALKARbmmh5YLimOy8csuGN.png

What needs to be set that mORMot used gzip compression?

See on MDN documentation:

https://developer.mozilla.org/en-US/doc … _with_gzip

Last edited by jaclas (2019-01-25 15:17:47)

Offline

#2 2019-01-25 15:20:47

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,544
Website

Re: Does gzip response work properly?

1. Small responses are not gzipping because there is no reason to gzip small responses. Large content will be gzipped as expected
2. Accept-Encoding header in response is a mORMot legacy. Just inore it

Offline

#3 2019-01-25 15:56:38

jaclas
Member
Registered: 2014-09-12
Posts: 215

Re: Does gzip response work properly?

I use Fiddler this time. It seems, however, that large files are also not compressed, see:

78mFK6XMsYHauGK2Ctz4SEE8qQqDjx9hwlnBIFo30w3T6GPAZJ6nOCm0t5d5UCEL.png

Offline

#4 2019-01-27 10:01:38

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,544
Website

Re: Does gzip response work properly?

By default server compress responses longer when 1024 bytes - See THttpServerGeneric.RegisterCompress documentation.
In case you respond with files using HTTP_RESP_STATICFILE compression is not applied  - for such cases I'm usually setup compression on nginx level (in case nginx is used as a reverse proxy)

Offline

Board footer

Powered by FluxBB