A great way to improve your google PageSpeed score is to add gzip compression to your nginx recipe.

Here is the code. Make sure gzip is installed on your server.

location  ~ ^/sites/default/files/(?:css|js) {
     gzip_static on;
     access_log off;
     expires max;

My mobile pagespeed score went from 89 to 93... almost there!




Saved you some valuable time?


Donate and get more free time-saving code on this website in the future.