Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jodydonetti committed Nov 26, 2023
2 parents f8543c7 + 4456bef commit 4e5ee5a
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 4e5ee5a

Please sign in to comment.