Skip to content

Commit

Permalink
check etag on 200 for sentinel key
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSadfa committed Oct 23, 2024
1 parent 0afb56a commit 9172ede
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public static async Task<KeyValueChange> GetKeyValueChange(this ConfigurationCli
try
{
Response<ConfigurationSetting> response = await client.GetConfigurationSettingAsync(setting, onlyIfChanged: true, cancellationToken).ConfigureAwait(false);
if (response.GetRawResponse().Status == (int)HttpStatusCode.OK)
if (response.GetRawResponse().Status == (int)HttpStatusCode.OK &&
!response.Value.ETag.Equals(setting.ETag))
{
return new KeyValueChange
{
Expand Down

0 comments on commit 9172ede

Please sign in to comment.