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 a year ago
Relevant content
- AWS OFFICIALUpdated 4 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?