mozmeao / infra

Mozilla Marketing Engineering and Operations Infrastructure
https://mozilla.github.io/meao/
Mozilla Public License 2.0
59 stars 12 forks source link

Add CDN for attachments domain #590

Closed bookshelfdave closed 7 years ago

bookshelfdave commented 7 years ago

The attachments domain (currently mdn.mozillademos.org) serves four types of requests:

These are good candidates for a CDN. Unlike the static assets, we would want short cache times, so that if a file is removed or updated, it will take effect quickly. We could also use the CloudFront Invalidation API.

Cache headers for /files were improved in #578.

NOTE: notes above by @jwhitlock, my name shows as I converted it from a project card to an issue.

jwhitlock commented 7 years ago

We can base it off of:

Possibly relevant CloudFront docs:

bookshelfdave commented 7 years ago
bookshelfdave commented 7 years ago

https://github.com/mozmeao/infra/pull/624

escattone commented 7 years ago

https://github.com/mozilla/kuma/pull/4479 https://github.com/mozmeao/infra/pull/623

bookshelfdave commented 7 years ago

deployed!