2 Answers
- Newest
- Most votes
- Most comments
1
Hi. You should use origin response behavior for that. Viewer response is controlling only what headers will browser have. In you case you are telling browser on how long it should cache the response
answered 2 months ago
Relevant content
- Accepted Answerasked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
OK.. thanks for the info. On a similar note, if I have a viewer-request function that directly returns a response, does cloudfront cache that response? And if i set a Cache-Control header in that response will that be used by cloudfront? or is that only for the viewer's browser?