3 ms·
> Does that setting apply to any subdirectory? The article linked in a comment above states otherwise. No, unfortunately it doesn't. One workaround that I us
by brandur 10y ago
> Does that setting apply to any subdirectory? The article linked in a comment above states otherwise.
No, unfortunately it doesn't.
One workaround that I use is to upload files without an extension and explicitly set their content type as `text/html` in S3. So a request to `/about` just serves a file in your S3 bucket called `about`. This works with both CloudFront and S3.
I wrote about a few more details of the process here: https://brandur.org/fragments/aws-static-hosting-workaround https://brandur.org/fragments/aws-static-hosting-workaround