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
- sends per-selector ETag for caching
- ensures that ETags will be consistent across replicas
- skips evaluation entirely if ETag matches
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Copy file name to clipboardExpand all lines: docs/reference/flagd-ofrep.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,4 +23,10 @@ To evaluate all flags currently configured at flagd, use OFREP bulk evaluation r
23
23
curl -X POST 'http://localhost:8016/ofrep/v1/evaluate/flags'
24
24
```
25
25
26
+
## Evaluation Caching
27
+
28
+
The bulk evaluation endpoint caches responses per selector to avoid redundant evaluations. Clients can use the `If-None-Match` header with a previously received `ETag` to check if the cache is still valid. When the ETag matches, flagd returns the cached response without re-evaluating.
29
+
30
+
**Important**: The ETag only corresponds the flag configuration version, not the evaluation context. Clients must not send a cached ETag when their evaluation context has changed, otherwise they may receive stale results.
31
+
26
32
See the [cheat sheet](./cheat-sheet.md#ofrep-api-http) for more OFREP examples including context-sensitive evaluation and selectors.
0 commit comments