NCAR / wrfcloud

WRF Cloud Framework
Apache License 2.0
14 stars 6 forks source link

CloudFront gives wrong MIME type #151

Closed hahnd closed 1 year ago

hahnd commented 1 year ago

Describe the Problem

After installing the system in a new account, the CloudFront distribution response to HTTP GET /index.html requests with a MIME type of binary/octet-stream, instead of the expected text/html value. This causes the browser to download index.html and save it as a file rather than render it as a web page.

Uploading the web application files again and creating a CloudFront invalidation usually resolves this error. However, this is a workaround, and we should not see this behavior.

Need to investigate why this happens and how to fix it.