You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,7 @@
12
12
- API callers (`ItemApiState`, `ListApiState`) are now awaitable. `await caller` now resolves to `caller.result` after the current operation is complete, or resolves immediately to the previous result if no operation is in progress.
13
13
-`useAppUpdateCheck` now also listens for Vite's `vite:preloadError` event, showing the update notification when dynamic imports fail due to stale chunks after a deployment.
14
14
-`useAppUpdateCheck` now persists the observed build in `sessionStorage` (keyed by a fingerprint of loaded script URLs), enabling detection of server updates after a browser discards and restores a tab from cached HTML.
15
+
- Added `limit` option to `useResponseCaching` to cap the number (`maxEntries`) or total size (`maxBytes`) of cached responses per endpoint group. Oldest entries are evicted first when limits are exceeded.
15
16
- Added `returnViewModel` prop to `c-select`, enabling ViewModel instances to be returned directly when bound with `for="TypeName"`.
16
17
- Added `adminOverrides` option to `createCoalesceVuetify()`, allowing custom Vue components to replace the default input and/or display components used in admin pages (`c-admin-editor`, `c-admin-method`, `c-table`) for specific model properties, method parameters, or method return values.
17
18
-`c-datetime-picker`: Assorted UI and UX improvements and fixes.
Copy file name to clipboardExpand all lines: docs/stacks/vue/layers/api-clients.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -340,6 +340,8 @@ Enables response caching on the API Caller.
340
340
341
341
Only [HTTP GET methods](/modeling/model-components/attributes/controller-action.md) are supported, and [file-returning methods](/modeling/model-components/methods.md#file-downloads) are not supported. Call with `false` to disable caching after it was previously enabled.
342
342
343
+
The `limit` option can be used to cap the number or total size of cached responses in a group. When limits are exceeded, the oldest entries are evicted first. By default, entries are grouped by endpoint URL path (without query parameters), but a custom `key` can be provided to group entries differently. Group metadata is stored alongside cache entries in the same `Storage`.
344
+
343
345
-**Example**
344
346
345
347
```ts
@@ -350,6 +352,14 @@ Enables response caching on the API Caller.
350
352
});
351
353
```
352
354
355
+
```ts
356
+
// Limit cached responses to 10 entries per endpoint
0 commit comments