Commit Graph

5 Commits

Author SHA1 Message Date
Lucas Verney cecf1fd8a5 Rework caching expiration handling
Check expiration of cached items when serving them instead of computing
an expiration date when first caching them. If the user changes the
caching duration after a request was cached, the new setting will be
used now.
2019-01-05 15:52:12 +01:00
Lucas Verney 07ab80542d Cache tiles locally within the ServiceWorker. Fix #40. 2019-01-04 14:23:50 +01:00
Lucas Verney b097387825 Don't cache requests from SW in dev mode 2018-11-29 16:35:21 +01:00
Lucas Verney f6cb9a3bc0 No caching in SW in development mode 2018-11-01 19:25:59 +01:00
Lucas Verney 903ad14bbc Add a service worker and cache assets
Assets are served from the local cache preferably. They are fetched from
the network if not available. This new addition also enables the "Add to
homescreen" in Chrome/Chromium.

Fix #22.
2018-10-26 14:15:56 +02:00