-
Notifications
You must be signed in to change notification settings - Fork 7
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
fix: caching #75
fix: caching #75
Conversation
a3e3c02
to
c53e585
Compare
src/constants/commonResponses.ts
Outdated
}, | ||
}); | ||
|
||
export const FILE_NOT_FOUND = (request: Request): Response => { |
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.
I don't think explicit types are needed here, TS will already infer this is of type Response
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.
Maybe, but eslint requires them under @typescript-eslint/explicit-function-return-type
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.
LGTM, just one question:
Quick question, do we need to also add CACHE_HEADERS.failure to our 5XX responses? (the try/catch on the worker.ts?)
That is also a part of this pr |
Oh I somehow didnt see this, still not seeing it 🤔 can you point me to the diff? |
|
Closes #73
See #73