apache - Turn on GZip for Laravel Ajax calls -
i have 2 views make several ajax calls controllers. return json results.
google pagespeed claimed should enable achieve 89% compression (my page contacts server every second, update status).
i've enabled gzip through .htaccess @ root /public subdirectory - meaning static resources compressed. ajax results not. enable it? add .htaccess somewhere, or enable in php code itself?
solved: .htaccess in public directory enough, since served off index.php page. missing application/json
@ deflate line.
Comments
Post a Comment