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

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -