Skip to content

Commit fa222f0

Browse files
committed
get cart items with no cache
1 parent 0d8ba83 commit fa222f0

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

dist/mangular.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
}
4747
function getItems() {
4848
var cartItems = getCartId().then(function(id) {
49-
return Restangular.all('guest-carts/' + id + '/items').customGET();
49+
return Restangular.withHttpConfig({
50+
cache: false
51+
}).all('guest-carts/' + id + '/items').customGET();
5052
});
5153
return cartItems;
5254
}

dist/mangular.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cart.service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
function getItems() {
4646
var cartItems = getCartId().then(function(id){
47-
return Restangular.all('guest-carts/'+ id + '/items').customGET();
47+
return Restangular.withHttpConfig({cache: false}).all('guest-carts/'+ id + '/items').customGET();
4848
});
4949
return cartItems;
5050
}

0 commit comments

Comments
 (0)