Skip to content

Commit

Permalink
Update ConditionalRefresh.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jodydonetti authored Nov 19, 2023
1 parent ab9c174 commit 4456bef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ConditionalRefresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ var product = await cache.GetOrSetAsync<Product>(

if (ctx.HasETag && ctx.HasStaleValue)
{
// LAST MODIFIED + STALE VALUE -> TRY WITH A CONDITIONAL GET
req.Headers.Add("ETag", ctx.ETag);
// ETAG + STALE VALUE -> TRY WITH A CONDITIONAL GET
req.Headers.Add("If-None-Match", ctx.ETag);
}

using var resp = await client.SendAsync(req, ct);
Expand Down

0 comments on commit 4456bef

Please sign in to comment.