Cache invalidation AWS APi gateway

Viewed 19

How do we invalidate a specific path on API gateway? Can we do using curl/postman and max-age=0 header? Assuming we are using authentication.

I couldn't good explanation in AWS docs.

enter image description here

curl  \
  https://xxx.execute-api.<region>.amazonaws.com/dev \
  --aws-sigv4 aws:amz:<region>:es \
  --header -H 'Cache-Control: max-age=0' \
  --header "x-amz-security-token: xxx" \
  --header 'Accept: application/json'

I tried this but I found it's not a good way to do it and validate for a production invalidation. Any other approach others do it? If someone use Lambda function. Does anyone have example of it? I am open to know all best practice approach.

0 Answers
Related