Pagespeed.


First of all, I added the following lines to the .htaccess file and then I went to the WordPress dashboard->Plugins->add new and there installed “https://wordpress.org/plugins/psn-pagespeed-ninja/“. I thought, things were done precisely there, after activating it, but once again I went to the settings of this plugin and turned “Leverage Browser Caching” off there (this is very important). Now, I can say things are done pretty nicely. These are those lines in the .htaccess file that I added before installing this plugin and this is a must (It is added before installing that plugin, not after installing that plugin),

<IfModule mod_headers.c>
Header set Cache-Control "no-cache, no-store, max-age=0, must-revalidate"
Header set Pragma "no-cache"
Header set Expires 0
</IfModule>

<IfModule mod_expires.c>
ExpiresActive Off
</IfModule>

What am I talking about here actually? I am talking about scoring nearly 100/100 or 100/100 on “Google pagespeed insight” and the simplest way to achieve it.

I was surprised to see the score of that website from a client after installing this plugin, when I checked the speed on “Google pagespeed insight“, it was 99/100! Very bizarre!

I need to go for a walk now and meanwhile you could get that score for your website or maybe you could get it at 100/100. All the best and love you all.

Leave a Reply

Your email address will not be published. Required fields are marked *