Explorar o código

HUE-6668 [frontend] Disable caching of JS files for development

Enrico Berti %!s(int64=8) %!d(string=hai) anos
pai
achega
4da2262084
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      desktop/core/src/desktop/templates/hue.mako

+ 3 - 0
desktop/core/src/desktop/templates/hue.mako

@@ -725,6 +725,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           r.find('link').each(function () {
             $(this).attr('href', $(this).attr('href') + '?' + Math.random())
           });
+          r.find('script[src]').each(function () {
+            $(this).attr('src', $(this).attr('src') + '?' + Math.random())
+          });
           % endif
           r.find('script[src]').each(function () {
             huePubSub.publish('hue4.add.global.js', $(this));