SEO - Increase Site Loading Speeds

znzz

Silver Supporter
MoP Premium
Superior Member
163
2015
28
Hey guys, while looking up methods on how to increase TTFB and such, I found a pretty simple quick method. Now, a lot of you may already know about using CDNs, this is more for people beginning in SEO.

1) you have to sign up for CloudFlare, which you can do for free or pay for it depending on needs. When you sign up, they will take you through the steps to get you all set up.
2) -Log in to your CloudFlare dashboard, click your domain
-Click "Page rules"
-Create a rule with this pattern http://www.website.com* (note the asterisk)
-Set the caching dropdown to "cache everything"
3) Important Details:
Disable caching for highly dynamic areas like: admin-pages, a forum, API endpoints and similar - by creating extra "page rules" with patterns like http://www.example.com/admin* or http://www.example.com/forum* and moving those up in the list of rules at Cloudflare.
Check your ajax-ed pages they might stop working because the server returns the same cached response every time. The easiest fix would be to use $.post instead of $.get in your JavaScript because CloudFlare does not cache POST-responses.

To check site speed before and after: (Google Chrome)
Right click page > inspect > network > command R, and then wait for it to load.
 
Top