At HTML5 Developer conference, Google exec examines proper use of caching to speed up websites.
Google fetishizes speed because websites that respond rapidly promote better user satisfaction, engagement, and monetization. Other Web-oriented companies share this obsession, but Google talks about speed incessantly and works constantly on software to make the Web faster.
Last week, Google released its open-source mod_pagespeed software to improve the performance of websites served using Apache servers. On Monday, the company revisited its favorite topic at the HTML5 Developer Conference, which runs through Tuesday in San Francisco, Calif.
In his keynote presentation, Steve Souders, performance evangelist at Google, argued that website owners need to pay more attention to the way their websites cache resources.
In the course of his talk, "Cache Is King," Souders explored how browser cache behavior influences webpage load times. While this may sound like technical esoterica, it's actually fundamental to the way that Web users experience websites.
Think of the caching behavior as a measure of distance to a retail store: A store that's located near a community is likely to see more customers from that group than a store that's many miles away. On the Web, a slow website is like a faraway store. Any serious Web business wants its website to be immediately accessible.
Caching also reduced the amount of data that needed to be sent over the network to load the sample page from 904 KB to 163 KB. Savings of that sort matter a lot to mobile network operators and to users dealing with mobile data caps.
With more efficient caching, a large number of websites could become significantly more responsive. Souders says that among the Alexa top 300,000 websites, 44% have no cache control header to instruct visitors' browsers how to cache files. Among the Alexa top 1000, 24% have no cache control header.
Souders advises Web developers to be explicit about how website resources should be handled. Not every file can or should be cached, but specifying which files should be cached and how long they should be cached is work that will pay off in the long run.
Top IT Trends to Watch in Financial ServicesIT pros at banks, investment houses, insurance companies, and other financial services organizations are focused on a range of issues, from peer-to-peer lending to cybersecurity to performance, agility, and compliance. It all matters.
Join us for a roundup of the top stories on InformationWeek.com for the week of September 25, 2016. We'll be talking with the InformationWeek.com editors and correspondents who brought you the top stories of the week to get the "story behind the story."