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.
- package/lib/bvFetch/index.js +4 -0
- package/package.json +1 -1
package/lib/bvFetch/index.js
CHANGED
@@ -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;
|