Optimising site speed with caching and Google PageSpeed
WP Rocket is regarded as the ultimate plugin for WordPress and WooCommerce.
Founder

WP Rocket is regarded as the ultimate plugin for WordPress and WooCommerce. It improves your Google PageSpeed score, so that your website or web shop fully meets the Core Web Vitals. Google uses the Core Web Vitals to measure the user experience of your website visitors. If you have your website developed and optimised, the user experience improves along with it. As a result, Google automatically rates your website higher. In this article we explain how we optimise your site speed with caching. Read on for more information.
What exactly is caching?
A cache is the storage area in which frequently used files and data are stored temporarily. Websites and web shops, for example, are partly stored in your browser's cache. They become temporary internet files, which means they are faster to use.Using cache for a faster website
How does our web agency use cache to make a website faster? Once web development is complete, we configure the cache with WP Rocket. This requires a great deal of care. What we often see is that when too many files are stored in the cache, functions stop working properly. A product may no longer add to the basket correctly, or other problems arise. Configuring the cache is a very important part of the final phase of development. Optimising speed by just 0.1 seconds can already increase the conversion rate of your web shop by 8%. By configuring the cache correctly, we make your website or web shop faster.A faster website or web shop = more conversions.
Optimising CSS and JavaScript with WP Rocket
The first thing we do is make sure WP Rocket minifies the CSS. When CSS files are minified, both comments and whitespace are removed from the CSS. This reduces the file size.What our web design agency does next is optimise CSS delivery. This prevents render-blocking CSS on your web shop or website. We load the CSS asynchronously and apply critical CSS. This ensures that your website or web shop loads above the fold. That is ideal, because the browser no longer has to read the entire CSS file first when the web shop or website is requested.
Minifying JavaScript + deferred loading
Once the cache is set up optimally for the CSS, we minify the JavaScript and make sure it loads deferred. This works the same way as minifying CSS. Here too we remove the whitespace and comments from the code. It also results in a smaller file, which the browser can retrieve faster.After minifying the JavaScript, we make sure it loads deferred. To guarantee optimal performance, the files need to be loaded in the footer or deferred. That way, the loading of other files is not blocked while the JavaScript is being downloaded. In this phase your web shop or website needs to be tested thoroughly. This should also be repeated continuously. If problems occur, they can be solved by excluding files from the option.
Using cache to optimise images
Once we have fine-tuned both the CSS and the JavaScript in the web design, we start optimising the images. We do this as follows:Using LazyLoad
With LazyLoad, images are loaded at the moment they are needed. When you enable LazyLoad, only the images that are in the viewport at that moment are loaded. Our web design agency enables this for images, but also for videos and iframes.
Image dimensions
We reduce layout shifts by giving every image a default width and height. We define this in the HTML, so the browser knows the size of the image. This stops buttons and similar elements from jumping around.
Setting the cache lifespan
By default, a cache lasts 12 hours. After 12 hours the cache is refreshed on the server. We recommend a lifespan of 10 to 24 hours, however. A normal website runs fine with a lifespan of 24 hours, but a web shop cache has a much shorter lifespan.
Need help configuring your cache? Get in touch with us.
Do you need help configuring your cache? Then get in touch with us. As a web agency we help you integrate caching correctly, so that your website achieves a high loading speed. With the specialists at our web agency, that is guaranteed.





