Bläddra i källkod

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

Enrico Berti 8 år sedan
förälder
incheckning
4da2262
1 ändrade filer med 3 tillägg och 0 borttagningar
  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));