I tested this blog on GTMetrix to measure how fast this blog can be. The first test I run threw Grade D in Google PageSpeed Score and Grade B in Yahoo! YSlow Score. One area I should have it optimized is to enable Gzip Compression and to define “Specify a Vary: Accept-Encoding Header” in this blog’s header response.
This is what I have done so far :
Step 1 – I logged into my VPS.
Step 2 – I had to edit nginx configuration file :
Step 3 – And then I looked for this line : gzip on. Most of the lines were commented (disabled) so I just need to enable it by removing the comment symbol (#). This is what I have :
Step 4 – I save the configuration and restart Nginx :
sysctl restart nginx
Step 5 – I went back to GTMetrix and this what I got :
Anyway, here’s a nicer configuration with some explanations :