This is question is slightly different than this question, but related. I have AWS API gateway setup with a single GET
method, which has 1 query parameter search
. This GET
call returns a list of words based on the search string. I have turned on caching by this query parameter, but get the same results, no matter the query parameter. When I turn caching off, it works as expected.
- First request
search=a*
=> words that start witha
are returned, as expected - Second request
search=b*
=> words that start witha
are returned, but I expect words that start withb
.
Why aren't my requests being cached by the query parameter?