Cache presigned URL for better caching

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2024-02-05 01:17:47 +08:00
parent c5569ea30f
commit a88c7321cf
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
4 changed files with 33 additions and 10 deletions

2
src/types.d.ts vendored
View file

@ -22,7 +22,7 @@ export interface PasteIndexEntry {
upload_completed?: boolean;
sha256_hash?: string;
cached_presigned_url?: string;
cached_presigned_url_expiration?: string;
cached_presigned_url_expiration?: number;
}
export interface Env {