the [annotation refresher](https://github.com/prometheus/promdash/blob/master/app/assets/javascripts/angular/services/annotation_refresher.js.erb) is doing it's own hacky thing to cache requests for annotations. this can be replaced with https://docs.angularjs.org/api/ng/service/$http#caching, but maintaining the same api. change the `GET` request to set `cache: true`: ``` javascript $http.get(dashboardURL + 'annotations', { params: { 'tags[]': t, until: until, range: r }, cache: true }) ``` then have the `clearCache` function delete the `$httpCache`. something along these lines. The rest of the code can go away.
the annotation refresher is doing it's own hacky thing to cache requests for annotations.
this can be replaced with https://docs.angularjs.org/api/ng/service/$http#caching, but maintaining the same api.
change the
GETrequest to setcache: true:then have the
clearCachefunction delete the$httpCache.something along these lines. The rest of the code can go away.