I have two forms. They both have an image control. Both of the src of the image controls point to the same file: sign out.png (yes, there is a space in the file name.) When I start to desktop browser, I get this in the log:
15:06:34.985 pwa.js:1 Uncaught (in promise) DOMException: Cache.addAll(): duplicate requests (http://127.0.0.1:51868/Project15/images/Sign%20Out.png) 15:06:34.985 appstudioFunctions.js:2216 [PWA] The installing service worker became redundant. (anonymous) @ appstudioFunctions.js:2216
The generated PWA file has the following for the fetch file list:
const contentToCache = [
‘code.js’,
‘index.html’,
‘images/Account.png’,
…
‘images/Sign In.png’,
‘images/Sign Out.png’,
‘images/Sign%20Out.png’,
‘images/Small_268057087.jpg’,
…
‘toolbox/as/dist/asStyle.css’,
];
Notice the %20 for the space. Removing spaces from file names fixes this issue. I don’t think AS handles file names with spaces correctly when creating the pwa.js header.