@vercel/routing-utils 5.3.1 → 5.3.2

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.
package/dist/schemas.d.ts CHANGED
@@ -880,6 +880,10 @@ export declare const routesSchema: {
880
880
  readonly maxLength: 256;
881
881
  };
882
882
  };
883
+ readonly respectOriginCacheControl: {
884
+ readonly description: "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.";
885
+ readonly type: "boolean";
886
+ };
883
887
  };
884
888
  }, {
885
889
  readonly type: "object";
@@ -1304,6 +1308,10 @@ export declare const rewritesSchema: {
1304
1308
  readonly maxLength: 256;
1305
1309
  };
1306
1310
  };
1311
+ readonly respectOriginCacheControl: {
1312
+ readonly description: "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.";
1313
+ readonly type: "boolean";
1314
+ };
1307
1315
  };
1308
1316
  };
1309
1317
  };
package/dist/schemas.js CHANGED
@@ -484,6 +484,10 @@ const routesSchema = {
484
484
  type: "string",
485
485
  maxLength: 256
486
486
  }
487
+ },
488
+ respectOriginCacheControl: {
489
+ description: "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.",
490
+ type: "boolean"
487
491
  }
488
492
  }
489
493
  },
@@ -538,6 +542,10 @@ const rewritesSchema = {
538
542
  type: "string",
539
543
  maxLength: 256
540
544
  }
545
+ },
546
+ respectOriginCacheControl: {
547
+ description: "When set to true (default), external rewrites will respect the Cache-Control header from the origin. When false, caching is disabled for this rewrite.",
548
+ type: "boolean"
541
549
  }
542
550
  }
543
551
  }
package/dist/types.d.ts CHANGED
@@ -86,6 +86,7 @@ export type RouteWithSrc = {
86
86
  * A middleware index in the `middleware` key under the build result
87
87
  */
88
88
  middleware?: number;
89
+ respectOriginCacheControl?: boolean;
89
90
  };
90
91
  export type RouteWithHandle = {
91
92
  handle: HandleValue;
@@ -122,6 +123,7 @@ export interface Rewrite {
122
123
  missing?: HasField;
123
124
  statusCode?: number;
124
125
  env?: string[];
126
+ respectOriginCacheControl?: boolean;
125
127
  }
126
128
  export interface Redirect {
127
129
  source: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/routing-utils",
3
- "version": "5.3.1",
3
+ "version": "5.3.2",
4
4
  "description": "Vercel routing utilities",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",