Forward client HTPP headers to improve caching

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
This commit is contained in:
Joe Ma 2023-11-10 19:50:13 +08:00
parent 601bd0b7dc
commit e53deac322
No known key found for this signature in database
GPG key ID: 7A0ECF5F5EDC587F
3 changed files with 80 additions and 17 deletions

8
src/types.d.ts vendored
View file

@ -8,3 +8,11 @@ export interface PasteIndexEntry {
read_count_remain?: number;
type?: string;
}
export interface Env {
PASTE_INDEX: KVNamespace;
QRCODE: ServiceWorkerGlobalScope;
AWS_ACCESS_KEY_ID: string;
AWS_SECRET_ACCESS_KEY: string;
ENDPOINT: string;
}