🟢 CloudFront + S3 연결 테스트
이 페이지가 보이면 S3 업로드와 CloudFront 배포가 정상 연결된 것입니다.
Request Info
- 현재 경로
- —
- 전체 URL
- —
- 호스트
- —
- 프로토콜
- —
- 페이지 로드
- —
SPA Rewrite 검증
아래 링크들을 클릭했을 때 모두 이 페이지가 다시 나오면 CloudFront Function spa-rewrite가 정상 동작하는 것입니다.
(상단 "현재 경로"가 클릭한 경로로 바뀌어야 함)
- / 루트 · Default root object 경유
- /index.html 직접 접근
- /settings 확장자 없는 경로 → /index.html 로 rewrite
- /meal/123 파라미터 포함 경로
- /a/b/c/d 깊은 경로
Cache-Control 헤더 확인 (수동)
터미널에서 다음 명령으로 응답 헤더 확인:
curl -I https://<cloudfront-domain>/
기대 헤더: cache-control: no-cache, no-store, must-revalidate (index.html behavior 확인) · strict-transport-security (SecurityHeadersPolicy 확인) · server: CloudFront