Sto usando questo codice PHP per l'output di json. Apache lo gzip di default? Oppure, come posso verificarlo?Apache 2 gzip json è in uscita di default?
header('Content-type: application/json');
header('Cache-Control: max-age=0,no-cache,no-store,post-check=0,pre-check=0');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
echo json_encode($response);
Credo che questo è quello che stai cercando. http://www.simonwhatley.co.uk/how-to-configure-apache-to-gzip-your-components –