Real World Lessons in Progressive Web Application/Service Worker Caching


Over the past year we have seen a lot of excitement around Progressive Web Applications. Browser evangelist are selling developers and business owners on their advantages and promising future. But what is the real story? What are the details to proper execution? What do engineers need to know to make their web sites into Progressive Web Applications that not only meet the minimum criteria, but meet the sales hype?

Searching the Pokedex offline is fun, what is the real experience like caching a business application? Caching application assets and data can be complex, especially for larger applications. What to cache, how long to cache and how to cache are all valid questions. Often, in an effort to just ship something, we cache nothing. When we don’t cache, we disappoint the customer and miss a key promise of progressive web applications.

In this session we will cover real details about caching reality based on real world experience in bringing Progressive Web Applications to market. This is not a session to sell the concept, but a session to highlight caching nuances you don’t see until you sit down to write the code.

Sure the Chrome engineers know the node modules, sw-precache & sw-toolbox, they developed. But what happens when you, the general developer uses them? How do you use the sw-precache and sw-toolbox modules to craft a caching strategy for your application? How do you even determine what to cache? How can you get yourself in trouble? And more importantly, how can you get out of trouble and prevent hours or days of frustration?

Chris Love

Chris Love is a front-end developer for people and companies who are lost in the sea of modern web and user experience standards. He has a quarter century of web development experience, and has built a wide variety of web sites and applications in those years. In recent years, he immersed himself in responsive web design, single-page web applications and web performance optimization.

He applies these interests to run a small web consulting company, Love2Dev, that focuses on user-first web applications that operate on all device classes and usage contexts. Love2Dev offers web development and analysis to help companies engage end users and operate more efficiently.

Chris authored 3 web development books including, High Performance Single Page Web Applications, http://amzn.to/1b0twcm. He is a Microsoft MVP, ASP Insider and Edge User Agent. Chris regularly speaks at user groups, code camps and developer conferences. He blogs at http://love2dev.com and is active on Twitter, @ChrisLove.

Through his blog, speaking and books, he’s here to help you shake up your approach to web development while making it all feel like fun. His insights and opinions have been featured in various magazines, popular podcasts web sites. He has helped hundreds of businesses and individuals, ranging from mom and pop shops through major corporate brands, to build modern web experiences.

When he’s not working on front-end development, you can find him spending time with his step-kids, learning karate, training for Spartan races and serving on his church board of directors.

You can follow Chris’ Blog at love2dev.com and on Twitter @ChrisLove.