Speed. It's an extremely important metric for judging a site. So much so Google has been bumping up rankings for fast sites since 2010. Amazon calculated that a page load slowdown of just one second could cost it $1.6 billion in sales each year.
Caching content is one of the best ways to make your website faster to respond.
Websites usually display content that changes. In order to allow content to be updated easily the data is stored in a database. When a web page is loaded the server has to go off to the database, load in all the content, work out how it's going to present the information and then send it back to your browser. Usually this process is pretty fast. Sometimes however, if some extra processing is going on things can slow right down.
With our recent DegreeStory website, our client was concerned that the site had become slower as more and more content was added. We looked into it and found that the homepage was performing badly in one particular area (the part shaded brown in the picture below)
In the picture above you can see at 14:20 or so the brown part of the graph (which represents the time displaying each individual story) has almost completely disappeared. What we did was to "cache" the content. What caching (in this context) means is that the first time a story is displayed we save a copy of the HTML and then the next time we need to display it the content is there - ready to go.
The trick with caching is knowing what content to cache and when to expire it. For example, if a user updates the title of a story we have cached, then we need to expire our cached copy so that only the new content is displayed to the next visitor. Fortunately Rails makes this simple so it's easy to shave precious seconds off your page load speed!
Once you have the metrics and know where the pain points are, adding targeted caching can go a long way to improving site speed and gaining a competitive edge.
Let's work together
Tell us about your project and we'll get back to you shortly.
Join The Conversation
More On The Blog
2022 ECommerce SEO Checklist: Ranking Factors That Will Matter
It’s no secret that any successful eCommerce store should stay updated with all SEO best practices. We have seen it happen with many of our clients and others in the industry, as lead conversion and mobile revenue are directly tied to your store’s Google rankings. To help you get an in-depth overview of how to rank your store on Google in the future, we have put together a 2022 eCommerce SEO checklist.
Sol Dieguez — Jan 19, 2022
Solidus vs Spree: Which Is Better For Your eCommerce? - 2022 Update
At Resolve Digital, we have clients who prefer to work with both of these platforms. Thanks to years of experience, our team knows the ins and outs of Spree eCommerce and the newer Solidus framework. To help you decide which one is best suited for your company’s online retail needs, we have put together a comparative article explaining the differences between them.
Sol Dieguez — Jan 12, 2022
What's New In eCommerce Trends For 2022
The COVID-19 pandemic accelerated the mainstream use of online retail and helped to position several eCommerce stores within the market. This brought drastic changes to the once usual customer habits and eCommerce global trends. That’s why you need to keep an eye on the latest shifts of the market and optimize your company’s store according to the eCommerce trends for 2022.
Sol Dieguez — Jan 6, 2022