You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -59,7 +63,6 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
59
63
readonly #requestTracingEnabled: boolean;
60
64
#clientManager: ConfigurationClientManager;
61
65
#options: AzureAppConfigurationOptions|undefined;
62
-
#isCdnUsed: boolean;
63
66
#isInitialLoadCompleted: boolean=false;
64
67
#isFailoverRequest: boolean=false;
65
68
@@ -91,6 +94,14 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
91
94
// Load balancing
92
95
#lastSuccessfulEndpoint: string="";
93
96
97
+
// CDN
98
+
#isCdnUsed: boolean;
99
+
/**
100
+
* The etag of a watched setting which has changed after the last refresh. This is used to break the CDN cache.
101
+
* This property will not be used when using key value collection based refresh. It could only be used during updateWatchedKeyValuesEtag and refreshKeyValues.
102
+
*/
103
+
#latestEtag?: string;
104
+
94
105
constructor(
95
106
clientManager: ConfigurationClientManager,
96
107
options: AzureAppConfigurationOptions|undefined,
@@ -218,11 +229,21 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
218
229
219
230
/**
220
231
* Loads the configuration store for the first time.
constresponse=awaitthis.#getConfigurationSetting(sentinel,{...getOptions,onlyIfChanged: !this.#isCdnUsed});// if CDN is used, do not send conditional request
* The pipeline policy that retrieves the etag from the request header and appends it to the request URL. After that the etag header is removed from the request.
10
+
* @remarks
11
+
* The policy position should be perCall.
12
+
* The App Configuration service will not recognize the etag query parameter in the url, but this can help to break the CDN cache as the cache entry is based on the URL.
0 commit comments