Преглед изворни кода

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

Enrico Berti пре 8 година
родитељ
комит
4da2262
1 измењених фајлова са 3 додато и 0 уклоњено
  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 () {
           r.find('link').each(function () {
             $(this).attr('href', $(this).attr('href') + '?' + Math.random())
             $(this).attr('href', $(this).attr('href') + '?' + Math.random())
           });
           });
+          r.find('script[src]').each(function () {
+            $(this).attr('src', $(this).attr('src') + '?' + Math.random())
+          });
           % endif
           % endif
           r.find('script[src]').each(function () {
           r.find('script[src]').each(function () {
             huePubSub.publish('hue4.add.global.js', $(this));
             huePubSub.publish('hue4.add.global.js', $(this));