instead of a hard coded list of urls in serviceworker.js
workbox.precaching.precacheAndRoute([
{ url: '/index.php',revision: 'index2209'},
{ url: '/images/wifino.svg',revision: 'wifino2209'},
{ url: '/offline.php',revision: 'offline2209'}
]);
I want to add the urls dynamic with a json file (generated with PHP). The json file looks like this (but can be changed):
{url: 'm.php?tid=1', revision: '11579804421'},
{url: 'm.php?sid=17', revision: '21579804421'},
{url: 'm.php?sid=3', revision: '31579804421'}
How can I read this file and put it to the list of workbox.precaching.precacheAndRoute?
Thanks a lot!
Uli