@gradientedge/cdk-utils 9.74.0 → 9.74.1

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.
@@ -195,11 +195,12 @@ class AzureApiManagementManager {
195
195
  string fullPath = context.Request.Url.Path.ToLower();
196
196
 
197
197
  // Query parameters
198
- string query = context.Request.Url.Query.ToLower();
198
+ string query = context.Request.Url.QueryString.ToLower();
199
199
 
200
200
  // Construct final cache key (no Accept header needed for JSON-only APIs)
201
201
  return $"{apiName}:{apiVersion}:{fullPath}:{query}";
202
- }" />`;
202
+ }" />
203
+ <set-variable name="bypassCache" value="@(context.Request.Headers.GetValueOrDefault("X-Bypass-Cache", "false").ToLower())" />`;
203
204
  if (operation.caching.enableCacheSet) {
204
205
  cacheSetInboundPolicy = `<choose>
205
206
  <when condition="@((string)context.Variables["bypassCache"] != "true")">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gradientedge/cdk-utils",
3
- "version": "9.74.0",
3
+ "version": "9.74.1",
4
4
  "description": "Utilities for AWS CDK provisioning",
5
5
  "main": "dist/index.js",
6
6
  "engines": {
@@ -241,11 +241,12 @@ export class AzureApiManagementManager {
241
241
  string fullPath = context.Request.Url.Path.ToLower();
242
242
 
243
243
  // Query parameters
244
- string query = context.Request.Url.Query.ToLower();
244
+ string query = context.Request.Url.QueryString.ToLower();
245
245
 
246
246
  // Construct final cache key (no Accept header needed for JSON-only APIs)
247
247
  return $"{apiName}:{apiVersion}:{fullPath}:{query}";
248
- }" />`
248
+ }" />
249
+ <set-variable name="bypassCache" value="@(context.Request.Headers.GetValueOrDefault("X-Bypass-Cache", "false").ToLower())" />`
249
250
 
250
251
  if (operation.caching.enableCacheSet) {
251
252
  cacheSetInboundPolicy = `<choose>