Skip to content
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

http: Support caching POST requests. #769

Merged
merged 1 commit into from
May 16, 2023

Conversation

betterengineering
Copy link
Contributor

This commit supports caching POST requests, though only if the user explicitly sets the TTL.

This commit supports caching POST requests, though only if the user
explicitly sets the TTL.
@@ -41,7 +41,6 @@ var cacheableStatusCodes = map[int]bool{
405: true,
410: true,
414: true,
429: true, // Not technically cachable, but it is in our system.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I re-ordered the check so that the 429 check is above the cachable response codes. It felt out of place, given we're not "caching" it per se. I could be convinced otherwise though

@betterengineering betterengineering enabled auto-merge (squash) May 16, 2023 19:28
@betterengineering betterengineering merged commit 37d4267 into main May 16, 2023
@betterengineering betterengineering deleted the mark/support-post-requests branch May 16, 2023 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants