bv-ui-core 2.9.3 → 2.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -167,6 +167,10 @@ module.exports = function BvFetch ({ shouldCache, cacheName, cacheLimit }) {
167
167
  // Check if response is available in cache
168
168
  const newPromise = this.fetchFromCache(cacheKey)
169
169
  .then((cachedResponse) => {
170
+ if (!cachedResponse) {
171
+ this.cachedUrls.delete(cacheKey)
172
+ return Promise.resolve(null);
173
+ }
170
174
  // If response found in cache, return it
171
175
  if (cachedResponse) {
172
176
  return cachedResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bv-ui-core",
3
- "version": "2.9.3",
3
+ "version": "2.9.4",
4
4
  "license": "Apache 2.0",
5
5
  "description": "Bazaarvoice UI-related JavaScript",
6
6
  "repository": {