We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62ac2b9 commit bd1c875Copy full SHA for bd1c875
1 file changed
src/AzureAppConfigurationImpl.ts
@@ -421,11 +421,11 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
421
let needRefresh = false;
422
for (const sentinel of this.#sentinels.values()) {
423
const response = await this.#getConfigurationSetting(sentinel, {
424
- onlyIfChanged: true
+ onlyIfChanged: !this.#isCdnUsed // if CDN is used, do not send conditional request
425
});
426
427
- if (response?.statusCode === 200 // created or changed
428
- || (response === undefined && sentinel.etag !== undefined) // deleted
+ if ((response?.statusCode === 200 && sentinel.etag !== response?.etag) ||
+ (response === undefined && sentinel.etag !== undefined) // deleted
429
) {
430
sentinel.etag = response?.etag;// update etag of the sentinel
431
needRefresh = true;
0 commit comments