feat: complete TASK-WP0-06 public cache
This commit is contained in:
@@ -223,7 +223,9 @@ export async function createApp(options: CreateAppOptions = {}) {
|
||||
: undefined;
|
||||
if (!resource) return reply.code(404).send();
|
||||
reply.type(resource.mimeType);
|
||||
reply.header("Cache-Control", "public, max-age=31536000, immutable");
|
||||
reply.header("Content-Disposition", "inline");
|
||||
reply.header("ETag", `"sha256-${resource.sha256}"`);
|
||||
return resource.bytes;
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user