ctrachte / SimpliFly

A single-page progressive web app to show flights for a certain origin, destination, and their prices
2 stars 1 forks source link

Service workers - fetching weather updates #39

Closed ctrachte closed 3 years ago

ctrachte commented 3 years ago

We need to leverage service workers (if possible) to fetch weather updates to the selected dates/locations every 30 seconds or so, because weather often changes rapidly.

The service worker should use cached data if no connection is available.

Start by reading through mozillas documentation here, and then researching ways to implement them https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers#registering_your_worker