I\'m using this PHP code for json output. Does apache gzip it by default? Or, how can I check to make sure?
header(\'Content-type: application/json\'); header(\'
No gzip is normally not used you have to enforce that yourself.
In the simplest case you just need to add this php line:
ob_start("ob_gzhandler");
See also the official php documentation.