Home > Enterprise >  Use Google Workbox for Offline Functionality in Asp.Net MVC
Use Google Workbox for Offline Functionality in Asp.Net MVC

Time:10-25

One of my clients has a requirement for his Asp.Net MVC application to run in offline mode (without internet) and someone suggested that I should use Google Workbox. I am a bit confused if I can achieve the functionality for my application to work without the internet since it is a dynamic application and I don't think Google Workbox would be able to render the pages without internet connectivity. Can anyone advise if this is feasible?

CodePudding user response:

It's feasible if you have cached (previously loaded) pages and you expect the connection to resume again. Workbox can help with both of these things

Check out Workbox's caching strategies page, and the Offline Cookbook for ideas for how to set up caching and revalidating pages:

CodePudding user response:

This is the point of workbox, to provide offline caching using Cache API and a Service Worker. You also do this with only a Service Worker and Cache API without the Workbox .js library.

  • Related