CloudFront-Viewer-Postal-Code does not work in Vietnam country

0

I configured CloudFront to use the CloudFront-Viewer-Postal-Code header in order to obtain postal codes, and it operates effectively in various regions, including Japan. Nonetheless, in certain countries, like Vietnam (Ho Chi Minh city), I am unable to acquire postal codes using this technique. I am curious if the CloudFront-Viewer-Postal-Code feature has country-specific restrictions.

질문됨 일 년 전288회 조회
1개 답변
0

CloudFront uses Maxmind database to update geo specific information. This data is refreshed on a weekly basis, however, will take up to five weeks to propagate across the worldwide fleet in a phased approach. This slow rollout is intentional to limit the potential impact of a negatively impacting deployment or geolocation dataset.

If Geo database installed in CloudFront edge location did not have geo information like Longitude, Latitude or Postal Code, CloudFront will not forward such information to origin though cache policy or origin request policy through headers like:

CloudFront-Viewer-Postal-Code, CloudFront-Viewer-Longitude, CloudFront-Viewer-Latitude

Therefore, if the request is made using an IP address that might have been updated in Maxmind databases within the last 5-6 weeks you don't see the 'CloudFront-Viewer-Postal-Code' header for these requests and you would be able to see them updated in 5-6 week time.

Thus, the CloudFront team suggest to send requests from different client IP addresses if you need to test CloudFront-Viewer header with your application.

[+] GeoRestriction - https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_GeoRestriction.html

AWS
지원 엔지니어
Nishant
답변함 일 년 전

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

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

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

관련 콘텐츠