bv-ui-core 2.9.3 → 2.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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;
|