final String widgetsetFilePath = widgetsetBasePath + "/"
+ WIDGETSET_DIRECTORY_PATH + widgetset + "/" + widgetset
- + ".nocache.js?" + new Date().getTime();
+ + ".nocache.js" + createPreventCachingQueryString();
// Get system messages
Application.SystemMessages systemMessages = null;
+ widgetsetFilePath + "\")};',15000);\n" + "//]]>\n</script>\n");
}
+ /**
+ * To ensure the GWT kickstart scritp is downloaded each time (even if
+ * server caching is not set up right), we add a unique query parameter to
+ * the end of the script file.
+ *
+ * @return
+ */
+ protected String createPreventCachingQueryString() {
+ return "?" + new Date().getTime();
+ }
+
/**
* @return true if the served application is considered to be the only or
* main content of the host page. E.g. various embedding solutions