Google: Cache Is King - InformationWeek
Government // Mobile & Wireless
02:39 PM
Connect Directly

Google: Cache Is King

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.

[ Learn more about the need for speed. Read Google Officially Speeds Up Web Page Loads. ]

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.

The browser cache stores Web resources -- graphics files, JavaScript files, CSS files, HTML files -- when a user visits a website, to make the site load more efficiently on a return visit. Having Web resources stored on a local device makes network issues matter less. Much of the appeal of native apps on mobile devices comes from the fact that application resources tend to be stored locally from the outset, which makes the app more responsive.

According to Souders, caching has more impact on page load times than disabling JavaScript or moving from a 1.5 Mbps DSL connection to a 20Mbps FIOS connection. Tests he conducted indicate that a webpage with a baseline load time of 7.65 seconds could be reduced to a load time of 3.46 seconds through optimized caching. Switching from DSL to Fios only resulted in a 4.13 second load time.

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.

Comment  | 
Print  | 
More Insights
Oldest First  |  Newest First  |  Threaded View
How Enterprises Are Attacking the IT Security Enterprise
How Enterprises Are Attacking the IT Security Enterprise
To learn more about what organizations are doing to tackle attacks and threats we surveyed a group of 300 IT and infosec professionals to find out what their biggest IT security challenges are and what they're doing to defend against today's threats. Download the report to see what they're saying.
Register for InformationWeek Newsletters
White Papers
Current Issue
2017 State of the Cloud Report
As the use of public cloud becomes a given, IT leaders must navigate the transition and advocate for management tools or architectures that allow them to realize the benefits they seek. Download this report to explore the issues and how to best leverage the cloud moving forward.
Twitter Feed
InformationWeek Radio
Archived InformationWeek Radio
Join us for a roundup of the top stories on for the week of November 6, 2016. We'll be talking with the editors and correspondents who brought you the top stories of the week to get the "story behind the story."
Sponsored Live Streaming Video
Everything You've Been Told About Mobility Is Wrong
Attend this video symposium with Sean Wisdom, Global Director of Mobility Solutions, and learn about how you can harness powerful new products to mobilize your business potential.
Flash Poll