@proveanything/smartlinks 1.14.7 → 1.14.9
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/dist/docs/API_SUMMARY.md +1 -1
- package/dist/http.js +5 -2
- package/docs/API_SUMMARY.md +1 -1
- package/package.json +1 -1
package/dist/docs/API_SUMMARY.md
CHANGED
package/dist/http.js
CHANGED
|
@@ -101,8 +101,11 @@ function getTtlForPath(path) {
|
|
|
101
101
|
function shouldSkipCache(path) {
|
|
102
102
|
if (!cacheEnabled)
|
|
103
103
|
return true;
|
|
104
|
-
// Never cache auth endpoints — they
|
|
105
|
-
if (/\/auth\//i.test(path))
|
|
104
|
+
// Never cache auth, account, or user-identity endpoints — they depend on session state.
|
|
105
|
+
if (/\/(auth|account)\//i.test(path))
|
|
106
|
+
return true;
|
|
107
|
+
// Never cache /me endpoints (contact/me, loyalty/me, etc.) — always user-specific.
|
|
108
|
+
if (/\/me(\?|$)/i.test(path))
|
|
106
109
|
return true;
|
|
107
110
|
return false;
|
|
108
111
|
}
|
package/docs/API_SUMMARY.md
CHANGED