@gradientedge/cdk-utils 9.71.0 → 9.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -317,9 +317,12 @@ class AzureApiManagementManager {
|
|
|
317
317
|
|
|
318
318
|
// Full path construction (without query parameters)
|
|
319
319
|
string fullPath = context.Request.Url.Path.ToLower();
|
|
320
|
-
|
|
320
|
+
|
|
321
|
+
// Query arameters
|
|
322
|
+
string query = context.Request.Url.Query.ToLower();
|
|
323
|
+
|
|
321
324
|
// Construct final cache key (no Accept header needed for JSON-only APIs)
|
|
322
|
-
return $"{apiName}:{apiVersion}:{fullPath}";
|
|
325
|
+
return $"{apiName}:{apiVersion}:{fullPath}:{query}";
|
|
323
326
|
}" />
|
|
324
327
|
<set-variable name="clearCache" value="@(context.Request.Headers.GetValueOrDefault("X-Apim-Clear-Cache", "false").ToLower())" />
|
|
325
328
|
|
|
@@ -338,7 +341,7 @@ class AzureApiManagementManager {
|
|
|
338
341
|
// Inject rate limiting policy (if configured)
|
|
339
342
|
let rateLimitPolicy = '';
|
|
340
343
|
if (props.rateLimit && scope.props.subscriptionId) {
|
|
341
|
-
rateLimitPolicy = `<rate-limit-by-key calls="${props.rateLimit.calls}" renewal-period="${props.rateLimit.renewalPeriodInSecs}" counter-key="${scope.props.subscriptionId}"/>`;
|
|
344
|
+
rateLimitPolicy = `<rate-limit-by-key calls="${props.rateLimit.calls}" renewal-period="${props.rateLimit.renewalPeriodInSecs}" counter-key="${scope.props.subscriptionId}-${apimOperation.operationId}"/>`;
|
|
342
345
|
}
|
|
343
346
|
const policyXmlContent = `<policies>
|
|
344
347
|
<inbound>
|
package/package.json
CHANGED
|
@@ -381,9 +381,12 @@ export class AzureApiManagementManager {
|
|
|
381
381
|
|
|
382
382
|
// Full path construction (without query parameters)
|
|
383
383
|
string fullPath = context.Request.Url.Path.ToLower();
|
|
384
|
-
|
|
384
|
+
|
|
385
|
+
// Query arameters
|
|
386
|
+
string query = context.Request.Url.Query.ToLower();
|
|
387
|
+
|
|
385
388
|
// Construct final cache key (no Accept header needed for JSON-only APIs)
|
|
386
|
-
return $"{apiName}:{apiVersion}:{fullPath}";
|
|
389
|
+
return $"{apiName}:{apiVersion}:{fullPath}:{query}";
|
|
387
390
|
}" />
|
|
388
391
|
<set-variable name="clearCache" value="@(context.Request.Headers.GetValueOrDefault("X-Apim-Clear-Cache", "false").ToLower())" />
|
|
389
392
|
|
|
@@ -403,7 +406,7 @@ export class AzureApiManagementManager {
|
|
|
403
406
|
// Inject rate limiting policy (if configured)
|
|
404
407
|
let rateLimitPolicy = ''
|
|
405
408
|
if (props.rateLimit && scope.props.subscriptionId) {
|
|
406
|
-
rateLimitPolicy = `<rate-limit-by-key calls="${props.rateLimit.calls}" renewal-period="${props.rateLimit.renewalPeriodInSecs}" counter-key="${scope.props.subscriptionId}"/>`
|
|
409
|
+
rateLimitPolicy = `<rate-limit-by-key calls="${props.rateLimit.calls}" renewal-period="${props.rateLimit.renewalPeriodInSecs}" counter-key="${scope.props.subscriptionId}-${apimOperation.operationId}"/>`
|
|
407
410
|
}
|
|
408
411
|
const policyXmlContent = `<policies>
|
|
409
412
|
<inbound>
|