reading-am / reading

The dreams! The dreams! It's all just absurdity in the light of day but the dreams!
MIT License
10 stars 0 forks source link

Switch S3 assets to subdomain to enable Cloudflare CDN #339

Closed leppert closed 12 years ago

leppert commented 12 years ago

Because our S3 assets are served from Amazon's domain, I don't believe Cloudflare is caching any of them. Switch the S3 bucket to use a subdomain per: http://stackoverflow.com/questions/5043616/amazon-s3-static-web-sites-custom-domain-or-subdomain

leppert commented 12 years ago

Looks like you can't use SSL to access an S3 bucket through a CNAME, which we need because the bookmarklet posts from https sites (such as Twitter).

https://forums.aws.amazon.com/message.jspa?messageID=291429 http://stackoverflow.com/questions/3048236/amazon-s3-https-ssl-is-it-possible http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html

I also tried to use Cloudflare's "Flexible SSL" as a bridge, masking to http, but that seemed dicey. So for now this is on ice.