I had to move the images inside /src for the service worker to be able to cache them automatically.
An other solution would have been to add a list of assets to cache, but this solutions offer less flexibility as every new asset needs to be added in the list.
I had to move the images inside
/src
for the service worker to be able to cache them automatically. An other solution would have been to add a list of assets to cache, but this solutions offer less flexibility as every new asset needs to be added in the list.