epic-stack icon indicating copy to clipboard operation
epic-stack copied to clipboard

Use Fly Statics for static assets

Open kentcdodds opened this issue 1 year ago • 0 comments

The web server can handle the static files well without issue, but it would be nice to use Fly's static assets to free up traffic on our web server: https://fly.io/docs/reference/configuration/#the-statics-sections

Unfortunately this is on hold for now due to the caveat that you cannot specify cache headers so the browser will have to re-request these assets every time which will lead to worse perf in practice.

Having our web server handle these is fine, but we'll want to keep an eye on this feature for when it does allow specifying custom cache-control headers.

kentcdodds avatar May 08 '23 22:05 kentcdodds