-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add central cache directive #2502
Conversation
@@ -48,6 +48,9 @@ const disableFaultyTransferEncodingHandling = (res: ComputeJsOutgoingMessage) => | |||
// TODO: remove once https://github.com/netlify/serverless-functions-api/pull/219 | |||
// is released and public types are updated | |||
interface FutureContext extends Context { | |||
flags: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not meant to be a customer-facing property, so we never added it to the Context
types. I've added it here for now, but we should consider having a InternalContext
or similar that extends the main context with any internal properties.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Might be worth adding the reason for putting this here to the comment above, until InternalContext
is implemented
📊 Package size report 0%↑
Unchanged files
🤖 This report was automatically generated by pkg-size-action |
@eduardoboucas I guess this can be closed now that #2510 is merged? |
Description
Adds the central cache directive to cache control headers.