Making your Site Faster with Caching

Making your Site Faster with Caching

One of the underlying technologies that plays an important role in how efficiently the internet works is caching. As the name implies, it is simply the temporary storage of files such as html pages, images, and other resources to reduce the number of times we have to request the original. As long as we limit the size of the cache (so it doesn’t become too big) and we check that the original content hasn’t been updated, the system works seamlessly in the background.

The two main kinds of caching are server-side and client-side, with the latter being an integral component of all modern web browsers. Whether you use one or a combination of both depends on how your website has been engineered. In this article we’ll look at how you can use this technology to improve your site’s performance.

Testing Performance

Google has emphasised that our latest SEO efforts should focus on making our pages load quickly, especially on mobile devices. Page loading time will affect your search rankings under Google’s new mobile index. If you can get your pages to load in two seconds or less that’s probably a good target. You can use tools like Google’s PageSpeed Insights to test your pages.

To reduce load times you’ll need to pay attention to things like:

  • choosing the right kind of host: Shared ResourcesDedicated, or Virtual Private Server (VPS).
  • optimising images
  • reducing HTTP requests to external resources like third-party dependencies like web fonts, JavaScript libraries, external scripts, plug-ins, and so on.
  • move video content and other downloadable files to dedicated Content Delivery Networks (CDN). Popular options include YouTube and Vimeo for video, and MaxCDNCloudFare, and Amazon CloudFront for other files.

Content Management Systems (CMS)

One of the most popular solutions for getting a site up and running is to use a platform because you don’t need to be an expert and security is built in. We’ll focus on WordPress here because of its popularity but many of the points might also apply to others such as Joomla, Drupal, and Django.

Behind the scenes a lot happens when you request a page from WordPress. In essence, the page is generated on-the-fly and that means time is consumed on the background processes. Luckily, most platforms allow us to install plugins to help improve the efficiency of this process by building a cache of static webpages on the server. The performance gains can be significant.

The most popular plugins for the WordPress platform include WP Super CacheWP Total Cache, and WP Rocket.

You’ll need to explore the configuration settings for the one you choose. Look for the following options:

  • page caching
  • browser caching
  • and object caching

Progressive Web Apps (PWA)

If you have decided to build your site yourself you actually get a lot more freedom in how you design it. Most notably, you can design your site to act as a web app. The distinction between traditional web sites and web apps is often very blurry from the visitors’ point of view because we can make our websites appear and behave just like a web app! We can have interactivitydatabase support, and an interface that mimics an app and scales to whatever device and screen size we are using.

One of the things that defines a PWA is its ability to be used without requiring an active internet connection. In order to achieve this we make use of powerful persistent storage feature present in all modern browsers. This is a special type of cache which allows for longer term storage.

This technology is undergoing rapid evolution because of the tremendous growth in web apps but you can read more about it at Mozilla: Web Storage concepts and usage.

Source: https://www.lukechaffey.com.au/making-your-site-faster-with-caching/

Deepa shelar

Empowering Automation Testing @Capgemini | Python Enthusiast | Selenium| API Testing| pytest| Agile ???

6 å¹´

Good morning sir. I am very interested in making websites. With the help of html 5 & CSS l have made my own website. This article is useful for me.

要查看或添加评论,请登录

Luke Chaffey的更多文章

  • SEO for International Business: Multi-Language and Countries

    SEO for International Business: Multi-Language and Countries

    If you do business in a number of different countries or with customers who speak different languages, achieving…

    1 条评论
  • Tools to Help Perfect Your Marketing Email

    Tools to Help Perfect Your Marketing Email

    Some people put off email marketing due to the intimidation factor. Writing sales emails requires carefully worded text…

    1 条评论
  • Guide to Finding Any Business Email Address

    Guide to Finding Any Business Email Address

    Need to make contact with a business-related contact, but don’t have their email? Perhaps you want to submit a press…

    1 条评论
  • Not Convinced Video Marketing Works? Check These Stats…

    Not Convinced Video Marketing Works? Check These Stats…

    Over the last few years the streaming of video content online has risen dramatically, and it’s predicted that this will…

  • Improve Your Businesses Online Presence With These Free Marketing Avenues

    Improve Your Businesses Online Presence With These Free Marketing Avenues

    When it comes to marketing your business online there are countless tools and services you can use. If you’re a…

  • Maximise Your YouTube Videos Exposure With These Essential Optimisation Tips

    Maximise Your YouTube Videos Exposure With These Essential Optimisation Tips

    The use of video content has grown significantly in recent years and forecasts predict that it will become increasingly…

    2 条评论
  • Ineffective Usage of Popups Can Hurt

    Ineffective Usage of Popups Can Hurt

    The use of popups is a controversial topic. In spite of what you may read about them, they can and do serve an…

  • Small CTA Tweaks to Make Large Impact

    Small CTA Tweaks to Make Large Impact

    Your Call-To-Action (CTA) is an integral part of your digital marketing campaign so it’s vital that you get it right as…

  • Accelerating Your User Journey with a Quicker Website Speed

    Accelerating Your User Journey with a Quicker Website Speed

    Website loading time matters a lot. Page load times are an important factor in how well your content is ranked in…

    2 条评论
  • Online Security: How to Handle Passwords

    Online Security: How to Handle Passwords

    These days most business owners should be well aware of the security and privacy risks associated with using the…

    2 条评论

社区洞察

其他会员也浏览了