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: packages/sdk/fastly/README.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
@@ -12,6 +12,12 @@ npm i @launchdarkly/fastly-server-sdk
12
12
yarn add @launchdarkly/fastly-server-sdk
13
13
```
14
14
15
+
## Usage notes
16
+
17
+
- The SDK must be initialized and used when processing requests, not during build-time initialization.
18
+
- The SDK caches all KV data during initialization to reduce the number of backend requests needed to fetch KV data. This means changes to feature flags or segments will not be picked up during the lifecycle of a single request instance.
19
+
- Events should flushed using the [`waitUntil()` method](https://js-compute-reference-docs.edgecompute.app/docs/globals/FetchEvent/prototype/waitUntil).
20
+
15
21
## Quickstart
16
22
17
23
See the full [example app](https://github.com/launchdarkly/js-core/tree/main/packages/sdk/fastly/example).
0 commit comments