cached offline.png / offline.css / offline.html do all have HTML content
I don’t understand what you mean. how can a png have html content? I think this is an issue depending on the static files not being set up correctly and will probably resolve itself.
PWA icons are not created (default icons are used)
For those who have the same problems when using Vaadin Flow with SpringBoot and JAR-packaging:
All static resources (including images and also PWA offline files) should be placed in src/main/resources/META-INF/resources. This works in development mode as well as packaged as a JAR, except one issue: the application icon is not found by Vaadin PWA to generate all required icon sizes, therefor the default icon is used. This is (currently) an open issue: [see Github]
(https://github.com/vaadin/flow/issues/4687).
The issue conversation also describes a (dirty) workaround until the issue is fixed: override the Vaadin default logo by placing it in src/main/resource/com/vaadin/flow/server/default-logo.png.
For those who have the same problems when using Vaadin Flow with SpringBoot and JAR-packaging:
All static resources (including images and also PWA offline files) should be placed in src/main/resources/META-INF/resources. This works in development mode as well as packaged as a JAR, except one issue: the application icon is not found by Vaadin PWA to generate all required icon sizes, therefor the default icon is used. This is (currently) an open issue: [see Github]
(https://github.com/vaadin/flow/issues/4687).
The issue conversation also describes a (dirty) workaround until the issue is fixed: override the Vaadin default logo by placing it in src/main/resource/com/vaadin/flow/server/default-logo.png.
Best regards, Björn
Your solution worked for me! Thx! The icon is overriden.
This should be fixed though. Lots of people use Vaadin with Spring Boot I guess.