Open vaadin-bot opened 8 years ago
Originally by @tepi
Workaround:
@LinkerOrder(LinkerOrder.Order.POST)
@Shardable
public class CustomLinker extends CacheManifestLinker {
public CustomLinker() {
addCachedResource("../../../VAADIN/vaadinBootstrap.js?v="
+ Version.getFullVersion() + " #.js");
addCachedResource("../../../VAADIN/themes/yourtheme/styles.css?v="
+ Version.getFullVersion() + " #.css");
}
}
<define-linker name="touchkitcachemanifest"
class="com.your.project.widgetset.CustomLinker" />
<add-linker name="touchkitcachemanifest" />
Confirmed to work on Android Chrome and iOS. Did not test on WP yet.
Originally by jarno.rantala
Since Vaadin 7.4.0 [https://vaadin.com/download/release/7.4/7.4.0/release-notes.html] the bootstrap javascript and themes are loaded with the version number:
Anyway, the current manifest file does not have a parameter. That would mean that the required resource is not cached at all so it always tries to fetch it from the server.
Current manifest:
There should be version numbers added to make the required resources cached
Imported from https://dev.vaadin.com/ issue #19321