I’m storing HTML fragments in an S3 bucket. These are entire pages with just the contents of the
body tag, and without the outer html, head, body etc. They have a .html file extension, however. I recently discovered that if you request them from S3 directly, they are served with a
text/plain mime-type, so the browser doesn’t properly interpret them. Is there a way to force the setting of the correct
text/html mime-type when the files are promoted to :store?
I found this blog, which seemed to indicate that
--no-mime-magic passed as an argument to s3 was a key to fixing this behavior, but that’s not accessible through the uploader as far as I can tell…
Thanks in advance,