Dev Tools · 1h ago
AWS S3 and CloudFront Subdirectory Hosting: Edge Cases and Fixes
A developer documents edge cases when hosting a static site on AWS S3 with CloudFront, including local redirect caching, S3 REST endpoints not resolving subdirectory indexes, CloudFront function execution stage errors, and relative asset resolution issues. Solutions involve clearing HSTS cache, using S3 static website endpoints, attaching functions to Viewer Request events, and ensuring trailing slashes.
Meridian48 take
While the post is a useful troubleshooting guide for AWS developers, its niche focus on specific S3-CloudFront configurations limits broader appeal.
Read the full reporting
AWS S3 + CloudFront Subdirectory Hosting: Architecture & Edge Cases →
DEV Community
aws-s3cloudfront