Vojtech Szocs has submitted this change and it was merged. Change subject: webadmin: Prevent browser from caching selector script (#784379) ......................................................................
webadmin: Prevent browser from caching selector script (#784379) https://bugzilla.redhat.com/784379 This patch prevents the browser from caching GWT selector script used to bootstrap the application (e.g. webadmin.nocache.js), as this script will change after each GWT recompile. Each time the application host page requests the selector script, it appends a dummy "nocache" URL parameter with value being the current timestamp. This makes the selector script URL unique each time the browser requests the host page itself. Even if the server applies caching headers for the selector script, the "nocache" URL parameter makes each request unique from web resource point of view. Change-Id: I09c32d3eeb9f29d1c4b49a1c52013895bb78c879 --- M frontend/webadmin/modules/frontend/src/main/java/org/ovirt/engine/ui/frontend/server/gwt/GwtDynamicHostPageServlet.java 1 file changed, 8 insertions(+), 3 deletions(-) Approvals: Vojtech Szocs: Verified; Looks good to me, approved -- To view, visit http://gerrit.ovirt.org/1802 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I09c32d3eeb9f29d1c4b49a1c52013895bb78c879 Gerrit-PatchSet: 2 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Vojtech Szocs <vsz...@redhat.com> Gerrit-Reviewer: Asaf Shakarchi <a...@redhat.com> Gerrit-Reviewer: Daniel Erez <de...@redhat.com> Gerrit-Reviewer: Danny Rankevich <danny....@redhat.com> Gerrit-Reviewer: Vojtech Szocs <vsz...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches