From e158ae9310fe074ee1bc838dccbb46405a63afcb Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 5 Sep 2012 14:55:55 -0400 Subject: [PATCH 1/2] Fixed reload problem for extensions --- src/utils/ExtensionLoader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/ExtensionLoader.js b/src/utils/ExtensionLoader.js index 5d27371f75b..21536cb6786 100644 --- a/src/utils/ExtensionLoader.js +++ b/src/utils/ExtensionLoader.js @@ -68,6 +68,7 @@ define(function (require, exports, module) { extensionRequire = brackets.libRequire.config({ context: name, baseUrl: config.baseUrl, + urlArgs: "nocache=" + (new Date()).getTime(), /* FIXME (issue #1087): can we pass this from the global require context instead of hardcoding twice? */ paths: globalConfig, locale: window.localStorage.getItem("locale") || brackets.app.language From 3471743e4c74c12cc74ae61a6b8d69a5ec948cb2 Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 5 Sep 2012 16:01:55 -0400 Subject: [PATCH 2/2] Added a comment to explain nocaching --- src/utils/ExtensionLoader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/ExtensionLoader.js b/src/utils/ExtensionLoader.js index 21536cb6786..4f1c3a87f64 100644 --- a/src/utils/ExtensionLoader.js +++ b/src/utils/ExtensionLoader.js @@ -68,6 +68,7 @@ define(function (require, exports, module) { extensionRequire = brackets.libRequire.config({ context: name, baseUrl: config.baseUrl, + // Force extensions to not be cached by passing a unique value (time) as a URL argument urlArgs: "nocache=" + (new Date()).getTime(), /* FIXME (issue #1087): can we pass this from the global require context instead of hardcoding twice? */ paths: globalConfig,