By Valerii Gusev August 10, 2020
When we’re building web applications at Cognite, we often run into a big challenge: How do we present data to users in extreme working environments where internet connectivity is an issue? In order to improve the mobile experience for such users, we started to look into offline support capabilities powered by service workers. Service workers give web apps the ability to intercept and handle network requests, including programmatically managing a cache of responses. By using service worker caching, we can provide users with a seamless app experience while transitioning between online and offline states.