Technical SEO

Caching

Shahid Maqbool

By Shahid Maqbool
On May 4, 2023

Caching

What Is Caching?

Caching is the process of temporarily storing data in a place - either software or hardware - to speed up its access. This stored data can be quickly retrieved and used again without having to go back to the original source.

Think of caching as a middleman between the end user and the main memory. The cache has a limited amount of space to store data, so it keeps only the most recently or frequently accessed data.

When the user requests data that is already stored in the cache, it can be quickly retrieved from the cache instead of going all the way back to the main memory.

Caching is used in various contexts, such as in devices like smartphones, tablets, and laptops. Apps like YouTube and Snapchat also have their own cache to quickly retrieve data without repeatedly accessing the main memory.

Apart from them, there are four major types of caches through which we can describe the caching process.

Types of cache

The four main types of caches are:

Browser cache

A browser cache works by saving website files like images and page code locally on your computer's hard drive. So when you first search and land on a new site, your browser pulls down the necessary HTML, images, CSS and more to view that page from the real site server.

But say you leave and come back to that same page later on. Now instead of having to re-download all those site resources again, your browser taps into the saved local cache copies on your hard drive to recreate the page really quickly.

It's all about loading speed and the user's convenience. Even your browsing history gets cached for faster auto-complete suggestions. And if the actual site content changes in the future, no problem - your browser is smart enough to grab the newest updates when needed.

You can also manually clear out the old cached files to free up some disk space without impacting performance much.

Browser caching is about keeping a speedy, convenient local version of previously visited sites ready to go for a faster experience.

Server cache

A server cache works by storing website data on a proxy server that sits between the main origin server and the user.

So, when a visitor requests a page, the proxy server can deliver the cached data super fast without always bothering the real server.

For example, images, videos, and web page content can all be cached. So if a user loads a page they or someone else has been to before, all that data can come straight from the proxy cache, lightening the workload for the origin server.

This intermediary proxy setup reduces the physical distance between the visitor and the data source. Having part of the website stored closer through caching means faster delivery of content to the user.

They don't have to wait for requests and responses to slowly move back and forth from a distant origin server.

Website cache

A website cache works like a short-term memory for website data that gets saved on the user's browser itself.

When you first visit a site, the browser grabs a copy of the web page contents, images, CSS files, and other pieces and stores them locally.

So next time you click around that same site, your browser can just display the saved local copies super fast instead of having to reach out and fetch it all over again from the distant website server.

For example, a cached home page, navigation bar, or logo can appear instantly while updated news feeds would freshly arrive from the server.

This website caching puts data physically closer to the end user for much speedier access. You avoid delays going back and forth to reload basic site building blocks over the web.

Things only get updated when the time expires or the site owner makes changes that invalidate the old cached versions.

Search engine cache

Another type of cache is related to search engines, particularly Google, which crawls and saves snapshots of pages it has crawled on its servers.

This cache is different from other types of caches because the cached pages of search engines are displayed only when necessary. During daily browsing, users will typically see live web pages.

In addition to Google, other search engines such as Bing, Yandex, and Baidu also cache pages while crawling.

This caching enables search engines to quickly display search results to users without having to go back to the original website every time a search is made.

Why is caching important?

Caching reduces the time it takes to retrieve data by temporarily storing frequently accessed data closer to the end user, either on the client side or the server side.

This enables the user to quickly access the data without having to go all the way back to the original source every time.

Caching is especially important in high-traffic situations where multiple users are accessing the same data simultaneously, as it can help to reduce the overall load on the system and improve the speed and reliability of data transfer.

Which types of caching play a role in SEO?

Two types of caching can play a critical role in SEO:

  1. Website caching

  2. Search engine caching

Website caching

From the SEO point of view, website caching helps improve the optimisation of pages.

Less load time, more crawling

Page load time is the time a page takes to display the full content of the page. When a page is readily available that a user is searching for, it will consume less time to load.

On the other hand, if the same page’s content has to be downloaded repeatedly, it would slow down the loading time.

This way, the page load time affects crawling as Google crawls fewer pages on a website that take more time to load.

Caching can help to reduce page load time by storing frequently accessed resources closer to the end user, this will indirectly increase the optimisation of web pages.

Better user experience, more traffic

Caching can improve the user experience and increase your page's traffic. It is because a user cannot wait for a long time while the page is loading. 

The more time your web pages take to load, the fewer users will visit your web pages. It is natural for a visitor to click and stay on a page that loads quickly.

More conversions, more growth

As a result of all these benefits, you can get more conversion rates when users respond to your page’s call to action. It will result in improved growth of your business.

Search engine caching

Search engine caching can also play a crucial role in optimisation.

Retrieve old content

If your website has gone through a problem, in that case, there is a possibility of losing the data; you can use a cached version of pages.

You will find web pages’ content in the form of a cached backup. While not all of the data may be available in the cached version, it can still provide a significant amount of information that can be retrieved.

This can be especially helpful in situations where data loss has occurred or when a website is experiencing downtime or technical issues.

See crawled pages

If you have updated a page on your website, you can check if it has been crawled by looking at the cached version.

However, it is possible that the updated version may not be immediately visible in the cached version. This is not a cause for concern, as the updated version can still be indexed by search engines.

How does Google caching work?

When Google crawls pages of a website, it saves copies of all these pages in the backup to retrieve them if the web page is unavailable for some reason.

The copy of a page that Google stores in the cache will be the latest cached copy of that webpage.

It can be called server-side caching because the snapshot or the copy will be saved on the server.

When a user visits a webpage on Google, they will not typically view the cached version of the page. Instead, they will view the live version of the page as it exists on the website's server.

How to view a cached page?

There are two ways you can check the cached version of pages:

Method 1

  • You can type the website URL in the search bar.

  • In SERP, you will find the page’s link and can click the three dots in the top right corner.

  • A card will be opened with a clickable “cached” button at the bottom.

  • Clicking on the “cached” button will make you land on the cached version of that web page.

How to view a cached page 1How to view a cached page 2
  • Apparently, this cached page will tell you the date and time when last Google took a snapshot of it. However, it may not be updated information always because this is how John Mueller has responded to a question:


..the date on the cached page is not necessarily the date of the last time we crawled / processed a page for indexing. The cache can be separate from indexing. Sometimes that's clear, if you search for a date and see it in the snippet, but not the cache.

Method 2

Another way to view a cached page version is to use the “cache:” operator. For this, you can type the web page’s name after the cache: (without space). It is a quicker way to open the cached page.

cache:https://www.shahidmaqbool.com

Drawbacks of caching

The problem of low storage space

Caching involves storing copies of data or files to provide quicker access when requested by the system or user.

However, as more data gets cached, it can consume a significant amount of storage space on your device or server.

When the storage space becomes low, it can negatively impact the overall system performance, forcing you to clear the cache to free up space and maintain normal operation.

The corrupted cache can affect the system

A cache can sometimes become corrupted due to software bugs, hardware failures, or other unexpected issues.

When this occurs, the data stored in the cache may be lost or become inaccessible, causing disruptions in your system's functionality.

Resolving a corrupted cache can be time-consuming, and until the issue is fixed, your system may not perform optimally.

Caching FAQs

Why does Google cache a page?

Google keeps the pages in storage after crawling them because there can be an error in the page loading, or the webmaster may modify it, which is temporarily unavailable.

In such cases, a user can be presented with a cached version rather than a live webpage.

Sometimes, the website’s speed is slow, or it is down for some reason. In this case, you can visit cached pages.

Can I prevent Google from page caching?

You can prevent Google from caching your page by adding a tag in the HTML code. You may want to do this when you are going to update the page soon. In that case, you can use meta tags to help you with this.

In the <head> section of a specific page, you can add the following code:

<Meta Name="GoogleBots" Content="Noarchive">

This tag will instruct Google not to cache that specific page only. You can do the same with every page you want not to be cached.

Do all the crawled pages get cached?

It is a misconception that all the pages that Google crawls are cached. According to John Mueller’s Twitter reply:

“We don't cache all pages that we index, so that can happen. Sometimes it takes a while, sometimes we just don't cache it at all.”

Can I remove cached pages?

You can remove cached pages using Google Search Console. If you have your site verified by Google Search Console, then you can simply sign in to your account:

  1. In a list of options to the right, you should click “index”, choose “Removal”, then “temporary removal”.

  2. If you click “new removal” in “temporarily remove URL”, a bar will be displayed where you can type your URL.

  3. Selecting “remove this URL only” will remove a specified URL, while selecting “remove all URLs with this prefix” will remove an entire folder.

  4. If you choose “temporary removal”, the current snippet and cached version will be removed for a period of six months. After this period, they will crawl and cache again.

  5. Choosing “clear cached URL” will remove cached pages only, while the original page will remain live.

What can Google’s cached pages indicate?

Page’s slow speed

If the search results show the cached version of your page, it means your page has a slow loading speed. You can work on the errors that are responsible for this.

A competitor’s similar content

By looking at the cached and fresh version of your competitor’s pages, you can assume your competitor's changes to the page.

Ending note

Caching is an essential process that temporarily stores data to speed up access and improve user experience. Various types of caches exist, such as browser, server, website, and search engine caching.

While caching can enhance SEO and website performance, it can also present drawbacks like low storage space, corrupted cache, and security risks.

Related Articles

Leave a reply
All Replies (0)