loading...
A fast website is great for visitors and is good for SEO (search engine optimization). You can start reducing and compressing images if you have not already done so. But there's more. In this article, I describe how to easily improve Leverage Browser Caching.
Caching is an important part and that is a somewhat technical story. Therefore, there are many caching plugins. However, if you want to install as few plugins as possible (making your website even faster and safer) then you can get started yourself.
Test load time
A first step is testing your current loading time. This can be done with the well-known Pingdom tool. Test it several times to calculate an average. In addition to load time, you can also find the Google Pagespeed performance grade and you can see which component is eligible for improvement. With me, that was Leverage Browser Caching (before the image below was created).
Leverage browser caching improve
In the past, the .htaccess file could easily be modified with the SEO at Yoast plugin. However, this functionality has been eliminated. Therefore, use an FTP program such as Filezilla to access your files.
- Download .htaccess file from the root folder
- Copy the .htaccess file and save it as a backup
- Open the .htaccesss 'Notepad' file and add the code below.
- Save and upload the file to the root
- Verify that charging time has been improved
# TN Expires Caching Start #
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text / css "access 1 month"
ExpiresByType text / html "access 1 month"
ExpiresByType image / gif "access 1 year"
ExpiresByType image / png "access 1 year"
ExpiresByType image / jpg "access 1 year"
ExpiresByType image / jpeg "access 1 year"
ExpiresByType image / x-icon "access 1 year"
ExpiresByType application / pdf "access 1 month"
ExpiresByType application / javascript "access 1 month"
ExpiresByType text / x-javascript "access 1 month"
ExpiresByType application / x-shockwave-flash "access 1 month"
ExpiresDefault "access 1 month"
</ IfModule>
# TN Expires Caching End #
Of course, your site's load time depends on other (external) factors, but Leverage Browser Caching is optimized!
Post A Comment:
0 comments so far,add yours