Page 1 of 1
Create and download zip file with AJAX
Posted: Mon Jan 04, 2021 11:06 pm
by Otto
Dear Antonio,
How can I compress response json in ajax call.
I think this should be possible with mod harbor.
But then is if sufficient to simply use content-encoding: gzip.
Maybe you have an example.
Best regards,
Otto
Re: Create and download zip file with AJAX
Posted: Sun Jan 10, 2021 5:10 pm
by Carles
Otto,
This work is done by Apache transparently. You must activate the mod_deflate in your httpd.conf
To see if your site works there are pages that will help you verify it, such as
https://www.giftofspeed.com/gzip-test/
C.
Re: Create and download zip file with AJAX
Posted: Tue Jan 12, 2021 1:55 pm
by Otto
Hello Carles,
thank you so much.
On my server I had to use this test tool:
https://www.whatsmyip.org/http-compression-test
https://www.giftofspeed.com/gzip-test/ give me an error.
On an other serve this is working fine.
Best regards,
Otto
Re: Create and download zip file with AJAX
Posted: Wed Jan 27, 2021 5:48 pm
by Otto
Hello Carles,
I made a test with deflate on and off.
Thank you again for your help.
Best regards,
Otto