diff --git a/src/framework/handlers/script.js b/src/framework/handlers/script.js index 6441589f17d..fde854c1cb4 100644 --- a/src/framework/handlers/script.js +++ b/src/framework/handlers/script.js @@ -69,7 +69,8 @@ class ScriptHandler extends ResourceHandler { callback(null, obj, extra); // no cache for scripts - delete self._loader._cache[ResourceLoader.makeKey(url, 'script')]; + const urlWithoutEndHash = url.split('&hash=')[0]; + delete self._loader._cache[ResourceLoader.makeKey(urlWithoutEndHash, 'script')]; } else { callback(err); }