diff --git a/docs/ConditionalRefresh.md b/docs/ConditionalRefresh.md index 14165195..c6c5975d 100644 --- a/docs/ConditionalRefresh.md +++ b/docs/ConditionalRefresh.md @@ -49,8 +49,8 @@ var product = await cache.GetOrSetAsync( 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);