Actually, there are many ways to speed up blog loading, including by reducing the number of widgets, reducing the number of posts on the homepage, reducing the number of ads or optimizing images before posting, as in the post entitled How to Speed up Loading Blogger Blogs.
By optimizing the loading speed of the blog, it is hoped that the loading performance of the blog will be faster, because if the loading speed of the blog is good, it will be seen as good by Google so that it makes it more SEO .
Increasing the loading speed of the blog must also be done for two devices, namely desktop and mobile devices. Especially if the majority of your blog visitors are smartphone users, so optimization of blog loading speed must also be considered for mobile devices.
Of course, you don't want it if your blog visitors immediately run away because your blog loading is slow.
Well, therefore speeding up the loading of the blog is very important in order to maintain the comfort of the visitors.
But before moving on to the core of the discussion, would you like to know in advance what an expires header is?
Table of contents:
- What Is Expires Header?
- Speed up Blog Loading with Add Expires Headers
What Is Expires Header?
The expiration header is a line of code whose job it is to tell the browser how long a site's cache files should be stored.
So, if a visitor wants to open the same page, just take it from the cache that has been stored earlier, without asking the server again.
Then, how long should the file be stored in the browser cache?
Now, because caches have an expiration date, it's important to specify the appropriate expires header.
Because if the expire header is too fast, there will always be a direct request to the server. In addition to the long loading process, you might get a warning like, "Your server is not using expires header for your image," (Your server does not have an expires header for its image).
On the other hand, too, if the expires header is too, long, the content changes made cannot be displayed immediately. Because the browser still displays the old data stored in the cache..
So, it can be said that by specifying the add expires header, you can still set the time for the browser to fetch the file to the server. And when he just takes the file from the cache only.
So far, you understand, right? There is already an idea of how the expires header works. If you already understand, let's move on to how to install add expires headers so that the blog loads faster.
Speed up Blog Loading with Add Expires Headers
Before applying this method, it would be better if you first check whether the expires headers code has not been installed in your blog template. If it's already installed, you can just skip it.
The way to install or set add-expires headers on the blog is as follows:
#Step1: Go to Blogger dashboard > Theme > Edit HTML
#Step2: Copy the code below and paste it Above <head> tag.
#Step3: Save Theme.
Now test your blog or website again on GTmetrix, and see the results.
Note: Usually changes to expires headers in the Yslow section of the GTmetrix page can be seen a day later, but if your blog's speed test has changed, it means that the process of adding the script has been successful.
Hopefully these tips can be useful for you. Thank you for visiting.