ASKnetCommunity / Training

This is the training plan to organize your own training.
https://training.asknet.community
GNU General Public License v3.0
5 stars 10 forks source link

Add offline usage using a service worker #194

Open saisilinus opened 10 months ago

saisilinus commented 10 months ago

Problem Statement

Currently, you need an active internet connection to access the app via the #ASKnet website. Users can alternatively run the app locally by cloning the repository and running on docker but that requires someone with technical expertise using docker and Git. A better alternative would be to integrate the offline feature in the web app so that users only need an internet connection the first time they visit the platform. They can then use a cache version of the app on future visits and update their cache when they have internet access.

Technical Specs

Service workers act as proxy servers that sit between the browser and the server. They can intercept browser requests and return cached pages if a user is offline. The proposed solution is to add a service worker to the app that caches the platform when connected to a network and returns the cached version if offline.

image