diff --git a/public/app/app.ts b/public/app/app.ts index a4e1bebca6e..00ae0974ec0 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -47,6 +47,17 @@ export class GrafanaApp { this.registerFunctions.factory = $provide.factory; this.registerFunctions.service = $provide.service; this.registerFunctions.filter = $filterProvider.register; + + $provide.decorator("$http", ["$delegate", function($delegate) { + var get = $delegate.get; + $delegate.get = function(url, config) { + if (url.match(/\.html$/)) { + url += "?v=" + new Date().getTime(); + } + return get(url, config); + }; + return $delegate; + }]); }); this.ngModuleDependencies = [ diff --git a/public/app/features/dashboard/dashnav/dashnav.html b/public/app/features/dashboard/dashnav/dashnav.html index 9f8fcb99333..155037ca124 100644 --- a/public/app/features/dashboard/dashnav/dashnav.html +++ b/public/app/features/dashboard/dashnav/dashnav.html @@ -6,15 +6,13 @@ -
- - - - {{dashboard.title}} -   (snapshot) - - -
+ + + + {{dashboard.title}} +   (snapshot) + +