[Freeipa-devel] [PATCH] 448 Load updated Web UI files after server upgrade

Jan Pazdziora jpazdziora at redhat.com
Mon Sep 2 07:42:32 UTC 2013


On Fri, Aug 30, 2013 at 05:21:36PM +0200, Petr Vobornik wrote:
> 
> Solution:
> * Implemented a mini loader which loads basic resources. Dojo loader
> takes action after Dojo is loaded.
> * The loader adds a version parameter (?v=__NUM_VERSION__) to all requests.
> * Version is defined in the loader. It's set to current in `make
> version-update`.
> * All static pages use this loader to fetch their resources.

Couldn't you make this a build time thing, marking the links with the
version with make? Alternatively, you could mark them with the hash of
the target, in which case if the target did not change with upgrade,
the hash would stay the same and the browser would not need to reload
it.

-- 
Jan Pazdziora | adelton at #ipa*, #brno
Principal Software Engineer, Identity Management Engineering, Red Hat




More information about the Freeipa-devel mailing list