File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -421,11 +421,11 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
421421 let needRefresh = false ;
422422 for ( const sentinel of this . #sentinels. values ( ) ) {
423423 const response = await this . #getConfigurationSetting( sentinel , {
424- onlyIfChanged : true
424+ onlyIfChanged : ! this . #isCdnUsed // if CDN is used, do not send conditional request
425425 } ) ;
426426
427- if ( response ?. statusCode === 200 // created or changed
428- || ( response === undefined && sentinel . etag !== undefined ) // deleted
427+ if ( ( response ?. statusCode === 200 && sentinel . etag !== response ?. etag ) ||
428+ ( response === undefined && sentinel . etag !== undefined ) // deleted
429429 ) {
430430 sentinel . etag = response ?. etag ; // update etag of the sentinel
431431 needRefresh = true ;
You can’t perform that action at this time.
0 commit comments