Speeding up your site is not necessarily going to be a snap. If you have a small, light site you may just need to try a couple of tactics on this list.
However, large, older sites with a lot of code and content may require some persistence and the implementation of several tactics on the following list.
Here’s where to start:
When you visit sites, your browser often caches pages on the site to speed up load time.
Browser caching stores webpage resource files on a local computer when a user visits a webpage, so leveraging browser caching is when you instruct browsers how their resources should be dealt with.
Things can slow down when the response from your server does not include caching headers or if resources are specified to be cached for only a short time.
Leveraging caching will load your pages much faster for repeat visitors and so will other pages that share those same resources.
The code below tells browsers what to cache and how long to “remember” it. It should be added to the top of your .htaccess file.
This content was originally published here.