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

How to logout from a login page in asp.net -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -