-
Notifications
You must be signed in to change notification settings - Fork 742
Closed
Description
Currently you can't cache a document because you can't change the status response using Etag / If-None-Match, curious if there's a reason this was only done for static content and not pages?
export const handler: Handlers = {
async GET(req, ctx) {
const resp = await ctx.render();
const x = req.headers.get('If-None-Match')
if (x === 'W/deadbeef') {
return resp // need to send 304
}
resp.headers.set("ETag", "deadbeef");
return resp;
},
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels