Difference between revisions of "Caching"
(→Definition) |
(→What are the benefits of caching?) |
||
Line 9: | Line 9: | ||
== What are the benefits of caching? == | == What are the benefits of caching? == | ||
− | When a user first visits a website, their browser saves selected site elements to its internal cache. This function allows | + | When a user first visits a website, their browser saves selected site elements to its internal cache. This function allows storing a range of materials on the visitor's computer that can be quickly retrieved from memory when returning to a website instead of pulling data from repeat content downloads. |
Correct caching helps optimize the site’s bandwidth usage, reduce server load, and manage operating costs. This also benefits visitors by improving page responsiveness, allowing access to content that may be unavailable due to outages, and improving the overall user experience to encourage return visits. | Correct caching helps optimize the site’s bandwidth usage, reduce server load, and manage operating costs. This also benefits visitors by improving page responsiveness, allowing access to content that may be unavailable due to outages, and improving the overall user experience to encourage return visits. |
Revision as of 12:30, 27 May 2021
Contents
Definition
Caching creates copies of website files to temporarily store them in a predetermined location on the visiting device's memory or an external server. This ‘cache’ function allows them to be quickly recalled upon return to the site. Essentially, a cache is a hardware or software component that delivers a high-speed data storage layer for faster delivery of website data. This decreases page loading times enables the fast return of data requests and improves SEO rankings.
The data in a cache can include elements such as HTML, CSS, JavaScript, images, and other multimedia materials. Correctly configuring site caching creates an optimized user experience for return visitors and reduces bounce rates and resource expenditure from the website host’s server infrastructure.
What are the benefits of caching?
When a user first visits a website, their browser saves selected site elements to its internal cache. This function allows storing a range of materials on the visitor's computer that can be quickly retrieved from memory when returning to a website instead of pulling data from repeat content downloads.
Correct caching helps optimize the site’s bandwidth usage, reduce server load, and manage operating costs. This also benefits visitors by improving page responsiveness, allowing access to content that may be unavailable due to outages, and improving the overall user experience to encourage return visits.
What options are available?
There are several options to choose from when it comes to data management via cache. Three of the most popular cache options used today include-
Site Caching: Controlled on the client-side, this function allows visitors to access the site and its pages through Google Cache. This provides a ‘backup’ of the content and allows visitors to return to material that may be temporarily unavailable or inaccessible when site elements have ceased to function. Viewing a cached version of a website or page is controlled by viewers at the front end of a website. The site’s back end configuration allows owners to dictate what data to cache for return and how long it should be kept.
In Short: This cache function is useful for site owners who may be struggling with site traffic management and/or infrastructure issues.
Browser Caching: This involves temporarily storing site information on the visitor’s device cache for retrieval at a later date. The returning visitor can also manually manage their cached data and clear their internal cache as necessary. The site owner can dictate what information the client browser cache retains on a page-by-page basis. Owners and Admins can also choose to flush their own cache to get rid of out of date or ‘stale’ material. This should always be done withnew redesign or after a significant site update has been performed.
In Short:The site cache function helps provide a responsive browsing experience while also limiting server load. This function is useful for large and complex sites or e-commerce pages with a significant return audience.
Server-Side Caching: This cache function involves the temporary storage of data on the site’s server infrastructure instead of a client-side device. The data can include queries and the caching of PHP code to ensure faster data delivery for return visits. This code, content, and query handling can be supported by usinga Content Delivery Network (CDN). CDNs use a distributed number of servers to dynamically return data based on geographic proximity. This function enables sites to operate efficiently in demanding situations and deliver content to users based on location and real-time capacity.
In short: Server-side caching helps reduce latency and manage server load. It is also a critical element of search engine optimization.
How do I check if I need caching?
Site analysis websites allow owners to check the status of their web pages. This can help determine where optimization methods, such as cache configuration, should be implemented to increase user experience and SEO results.
For example, Google PageSpeed Insights gives users a free analysis of their website to check things like page speed and site effectiveness. Reports delivered from these website analyses deliver specific information about loading speed and recommend targeted changes to the website’s cache approach that can improve site rankings.
Screenshot with an analysis result of Google PageSpeed Insights
This is worth particular consideration if the site is built using WordPress or server-side languages such as PHP. Failing to configure cache function options correctly can result in increased loading times and unnecessary demands on server infrastructure.
Importance for SEO
Correct cache configuration plays a key role in improving a site’s search engine rankings by allowing it to function at optimal efficiency. Page speed is officially listed as a Google Ranking factor for desktop and mobile searches. [1] Using caching on a website can improve SEO while also delivering an optimized experience for site visitors.
Cache function options can be set on a page-by-page basis, allowing site owners to deliver a responsive site that loads quickly and performs well. This allows sites to be cache optimized, even if they offer a combination of regularly updated content, long-standing materials, or uncacheable, complex elements.
References
- ↑ Speed is now a landing page factor for Google Search and Ads Google Developers. Retrieved 26 November 2020.
Related Links
- https://www.wired.co.uk/article/caching-cached-data-explained-delete
- https://www.businessinsider.com/what-is-cache