@@ -62,7 +62,7 @@ import { FeatureFlagTracingOptions } from "./requestTracing/FeatureFlagTracingOp
62
62
import { AIConfigurationTracingOptions } from "./requestTracing/AIConfigurationTracingOptions.js" ;
63
63
import { KeyFilter , LabelFilter , SettingSelector } from "./types.js" ;
64
64
import { ConfigurationClientManager } from "./ConfigurationClientManager.js" ;
65
- import { ETAG_LOOKUP_HEADER } from "./EtagUrlPipelinePolicy .js" ;
65
+ import { CDN_TOKEN_LOOKUP_HEADER } from "./CdnTokenPipelinePolicy .js" ;
66
66
import { getFixedBackoffDuration , getExponentialBackoffDuration } from "./common/backoffUtils.js" ;
67
67
import { InvalidOperationError , ArgumentError , isFailoverableError , isInputError } from "./common/error.js" ;
68
68
@@ -507,7 +507,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
507
507
if ( this . #isCdnUsed && selectorCollection . cdnToken ) {
508
508
listOptions = {
509
509
...listOptions ,
510
- requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
510
+ requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
511
511
} ;
512
512
}
513
513
const pageEtags : string [ ] = [ ] ;
@@ -618,7 +618,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
618
618
// If CDN is used, add etag to request header so that the pipeline policy can retrieve and append it to the request URL
619
619
let getOptions : GetConfigurationSettingOptions = { } ;
620
620
if ( this . #isCdnUsed && this . #kvSelectorCollection. cdnToken ) {
621
- getOptions = { requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken } } } ;
621
+ getOptions = { requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken } } } ;
622
622
}
623
623
const response = await this . #getConfigurationSetting( sentinel , getOptions ) ;
624
624
sentinel . etag = response ?. etag ;
@@ -680,7 +680,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
680
680
if ( this . #isCdnUsed && this . #kvSelectorCollection. cdnToken ) {
681
681
// if CDN is used, add etag to request header so that the pipeline policy can retrieve and append it to the request URL
682
682
getOptions = {
683
- requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken ?? "" } } ,
683
+ requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken ?? "" } } ,
684
684
} ;
685
685
}
686
686
// send conditional request only when CDN is not used
@@ -754,7 +754,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
754
754
// If CDN is used, add etag to request header so that the pipeline policy can retrieve and append it to the request URL
755
755
listOptions = {
756
756
...listOptions ,
757
- requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
757
+ requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
758
758
} ;
759
759
}
760
760
0 commit comments