From 9f7858bc4ad0018435efe0d75a3f5fb24de0dd46 Mon Sep 17 00:00:00 2001 From: Brian Talma <47258865+btalma@users.noreply.github.com> Date: Wed, 12 May 2021 13:41:35 -0400 Subject: [PATCH 1/2] Update WishListRepository.cs --- dotnet/Data/WishListRepository.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotnet/Data/WishListRepository.cs b/dotnet/Data/WishListRepository.cs index 802a2ad..f391242 100644 --- a/dotnet/Data/WishListRepository.cs +++ b/dotnet/Data/WishListRepository.cs @@ -106,6 +106,8 @@ public async Task GetWishList(string shopperId) request.Headers.Add(WishListConstants.VtexIdCookie, authToken); request.Headers.Add(WishListConstants.PROXY_AUTHORIZATION_HEADER_NAME, authToken); } + + request.Headers.Add("Cache-Control", "no-cache"); var client = _clientFactory.CreateClient(); var response = await client.SendAsync(request); @@ -229,6 +231,8 @@ public async Task GetAllLists() request.Headers.Add(WishListConstants.VtexIdCookie, authToken); request.Headers.Add(WishListConstants.PROXY_AUTHORIZATION_HEADER_NAME, authToken); } + + request.Headers.Add("Cache-Control", "no-cache"); var client = _clientFactory.CreateClient(); var response = await client.SendAsync(request); From c0fda2f3e10f66463e9d78a1f79ca85173bd1c7e Mon Sep 17 00:00:00 2001 From: Brian Talma <47258865+btalma@users.noreply.github.com> Date: Wed, 12 May 2021 13:42:59 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a5cc69..4b33ac4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Disable cache when getting lists + ## [1.7.0] - 2021-05-06 ## [1.6.2] - 2021-05-06