@proveanything/smartlinks 1.14.8 → 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 +4 -1
- 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,9 +101,12 @@ function getTtlForPath(path) {
|
|
|
101
101
|
function shouldSkipCache(path) {
|
|
102
102
|
if (!cacheEnabled)
|
|
103
103
|
return true;
|
|
104
|
-
// Never cache auth or
|
|
104
|
+
// Never cache auth, account, or user-identity endpoints — they depend on session state.
|
|
105
105
|
if (/\/(auth|account)\//i.test(path))
|
|
106
106
|
return true;
|
|
107
|
+
// Never cache /me endpoints (contact/me, loyalty/me, etc.) — always user-specific.
|
|
108
|
+
if (/\/me(\?|$)/i.test(path))
|
|
109
|
+
return true;
|
|
107
110
|
return false;
|
|
108
111
|
}
|
|
109
112
|
/** Evict the oldest (LRU) entry when the cache is at capacity. */
|
package/docs/API_SUMMARY.md
CHANGED