Hi Tristan,
it seems you are right and that Django is updating static content based on timestamps. See for instance
this thread on similar issues with time zones.
I was able to reproduce the issues by setting the timestamp on a static file, i.e.:
- Code: Select all
$ touch -t 03100000 lib/python/omeroweb/webclient/static/webclient/css/layout.css
$ bin/omero web syncmedia
Copying '/Users/sebastien/code/ome/openmicroscopy/dist/lib/python/omeroweb/webclient/static/webclient/css/layout.css'
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'
1 static file copied, 604 unmodified, 2 post-processed.
$ touch -t 03110000 lib/python/omeroweb/webclient/static/webclient/css/layout.css
$ bin/omero web syncmedia
Copying '/Users/sebastien/code/ome/openmicroscopy/dist/lib/python/omeroweb/webclient/static/webclient/css/layout.css'
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'
1 static file copied, 604 unmodified, 2 post-processed.
$ touch -t 03060000 lib/python/omeroweb/webclient/static/webclient/css/layout.css
$ bin/omero web syncmedia
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'
0 static files copied, 605 unmodified, 2 post-processed.
In general this hints towards some caution while downgrading an OMERO.web application deployed from a source control repository as you suggest. Downloading a release distributed source and unpacking it locally should set the current time as the timestamp and thus protect downgrading from this static issue.
Thanks for notifying us of this. Best,
Sebastien