@visns-studio/visns-components 5.15.20 → 5.15.21
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/package.json +1 -1
- package/src/components/Fetch.jsx +2 -2
package/package.json
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
95
95
|
},
|
|
96
96
|
"name": "@visns-studio/visns-components",
|
|
97
|
-
"version": "5.15.
|
|
97
|
+
"version": "5.15.21",
|
|
98
98
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
99
99
|
"main": "src/index.js",
|
|
100
100
|
"files": [
|
package/src/components/Fetch.jsx
CHANGED
|
@@ -55,8 +55,8 @@ const generateCacheKey = (url, method, formData) => {
|
|
|
55
55
|
const shouldCache = (method, url) => {
|
|
56
56
|
const normalizedMethod = method.toUpperCase();
|
|
57
57
|
|
|
58
|
-
//
|
|
59
|
-
if (normalizedMethod === 'GET') return
|
|
58
|
+
// Don't cache GET requests
|
|
59
|
+
if (normalizedMethod === 'GET') return false;
|
|
60
60
|
|
|
61
61
|
// Cache specific safe POST endpoints that return reference data
|
|
62
62
|
const cacheableEndpoints = [
|