Support on cache by body on POST request
See original GitHub issueHi,
I’m getting “Internal Server Error” when I’m trying to configure a POST request.
Here is my function definition
postCached:
handler: src/handlers/postCached.handler
events:
- http:
path: /cached/test
method: post
cors: true
caching:
enabled: true
cacheKeyParameters:
- name: integration.request.header.bodyValue
mappedFrom: method.request.body
And a body example:
{
"email": "foo@bar.xyz"
}
What is wrong?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Caching HTTP POST Requests and Responses
But HTTP caching is applicable only to idempotent requests, which makes a lot of ... The solution is to digest the POST body...
Read more >Is it possible to cache POST methods in HTTP? - Stack Overflow
The POST response body can only be cached for subsequent GET requests to the same resource. Set the Location or Content-Location header in ......
Read more >Cache POST requests · Cloudflare Workers docs
Cache POST requests using the Cache API. async function sha256(message) { ... Hash the request body to use it as a part of...
Read more >Cache for post requests based on the body content - FAQ
hello. i am trying to set caching for my graphql end point.(i have some other rest end points too.) i see that there...
Read more >Cache POST Responses - Akamai TechDocs
How it works By default, POST requests are passed to the origin. ... Adds the raw request body as a query parameter to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have found the problem, problem is related with binaryMediaTypes, if for any reason you have binaryMediaTypes: / lambda integration does not work
The error I’m getting from API Gateway is the following:
Execution failed due to configuration error: Unable to transform request
Any suggestion/idea?