Skip to content

Commit

Permalink
Add cacheTtlNotFound parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed May 3, 2024
1 parent 3673558 commit b8f22a8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/public/shared/UrlBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 7 additions & 0 deletions src/public/shared/UrlBuilderTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit b8f22a8

Please sign in to comment.