This repository has been archived by the owner on Sep 18, 2019. It is now read-only.
Releases: shaungrady/angular-http-etag
Releases · shaungrady/angular-http-etag
2.0.18
2.0.17
2.0.16
2.0.15
Fix compatibility with Angular 1.6. Please note the new promise syntax due to the change in 1.6 dropping support for the success
and error
promise shortcut methods.
Example of new syntax:
$http
.get('/my_data.json', {
etagCache: 'persistentCache'
})
.then(function success (response, itemCache) {
// Success
})
.ifCached(function (response, itemCache) {
// Cached. Note new method and arguments.
})
2.0.14
- Added
ifCached
method to the$http
promise that matchesthen
callback argument structure; deprecatecached
method ifuseLegacyPromiseExtensions
is set tofalse
. (#51)
Example:
promise
.then(function successHandler (response, itemCache) {
var data = response.data
data._fullName = data.first_name + ' ' + data.last_name
itemCache.set(data)
self.fullName = data._fullName
})
.ifCached(function (response, itemCache) {
self.fullName = response.data._fullName
})
Thank you for your contribution on this one, @Tommatheussen!
2.0.13
2.0.12
2.0.11
2.0.10
- Bundler switch from Browserify to Rollup, reduced release size by 64%
- Small optimizations, removal of redundant code
- No functional changes
2.0.9
Add purgeCaches
method to service that removes all cached items from all defined caches.