diff --git a/src/public/shared/UrlBuilder.ts b/src/public/shared/UrlBuilder.ts index 70d93a0..e801d4f 100644 --- a/src/public/shared/UrlBuilder.ts +++ b/src/public/shared/UrlBuilder.ts @@ -86,11 +86,13 @@ export class UrlBuilder { { cache: null, cacheTtl: null, + cacheTtlNotFound: null, version: null, forceDownloadPrompt: null }, { cacheTtl: "cache_ttl", + cacheTtlNotFound: "cache_ttl_not_found", forceDownloadPrompt: "download" } )(params); diff --git a/src/public/shared/UrlBuilderTypes.ts b/src/public/shared/UrlBuilderTypes.ts index 391b8fa..de6daff 100644 --- a/src/public/shared/UrlBuilderTypes.ts +++ b/src/public/shared/UrlBuilderTypes.ts @@ -61,6 +61,13 @@ export interface NonDeprecatedCommonQueryParams { */ cacheTtl?: number; + /** + * Specifies the maximum amount of time, in seconds, that 404 responses will be cached in the Bytescale CDN's edge cache. + * + * Default: Please refer to your account's default cache settings in the Bytescale Dashboard. + */ + cacheTtlNotFound?: number; + /** * Forces the browser to display a download prompt for the file, instead of displaying the file in the browser. *