Skip to content

Commit

Permalink
docs: cache-control (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno authored Dec 6, 2024
1 parent 8155706 commit 7f35c6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ const user = new ProfileParser(await profileData.text());

console.log(user.profile.displayName);
```

If this data is stale, you can check the `Cache-Control` header of the response from DE's server to see how long to wait for retry, and you could have the above retry after that amount of time. However, this may cause _significant_ delay if the data is not saved/hydrated in a fully asynchronous or event-based timeframe.

0 comments on commit 7f35c6e

Please sign in to comment.