/* This code snippet is provided by Sencha. Prior to this, when JS files are loaded via "requires", Sencha framework just loaded the files and there was no mechanism to attach query string like product version. This forced those files to be cached by the browser - meaning any changes to such files were never cache busted. Below code allows us to override cache busting mechanism. With this code, such files will be invalidated in every release. */ // Disable the caching - this allows us to pass in our query string Ext.Boot.config.disableCaching = true; // Query string parameter value Ext.Boot.config.productVersion = window.__productVersion__; // Query string Ext.Boot.config.disableCachingParam = 'productVersion'; // Function to override cache busting mechanism Ext.Boot.create = function (url, key, cfg) { var config = cfg || {}; config.url = url; config.key = key; config.cache = Ext.Boot.config.productVersion || undefined; return Ext.Boot.scripts[key] = new Ext.Boot.Entry(config); };