AWS Amplify – Enable Cache on API Gateway

  1. Go to API Gateway console
  2. Select the stage
  3. Select the Enable API Cache checkbox

4. Select the GET path under Resources -> /content/{proxy+}

5. Select the Method Request
6. Expand Request Paths
7. Make sure the caching checkbox is enabled

8. Once you make the changes, click on Actions -> Deploy API.

9. Select the stage and click Deploy.

The above configuration will make sure all the GET requests to the API Gateway are cached for 600 seconds.

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *