cloudfront - want manipulate browsers to break the cache and retrieve a resource again from cloudront

0

cloudfront - want manipulate browsers to break the cache and retrieve a resource again from cloudront is there a way to do it from cloudfront end ? maybe something with response headers ?

  • Please provide more details. Its not clear

Ronen
질문됨 4달 전131회 조회
1개 답변
0

Hi Ronen, You can specify the minimum, default, as well as the maximum cache duration in the CloudFront cache. CloudFront will use these settings, and compare them with values in the responses coming from origins, as passed with Cache-Control's max-age, s-maxage, or based on the date specified in the Expires header.

Now, when a client makes a request to CloudFront, CloudFront will respect the settings specified in the Cache policy. This is both for performance (better cache utilization) as well as security reasons to protect your origin - most of our customers don't want their origins to be abused by external actors if CloudFront behavior was configured to always cache the responses.

CloudFront documentation specifies that "You cannot use the HTTP Cache-Control or Pragma header fields in a GET request from a viewer to force CloudFront to go back to the origin server for the object. CloudFront ignores those header fields in viewer requests." We don't have options currently to disable this behavior.

AWS
Piotrek
답변함 4달 전
profile picture
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠