Closed lstrzebinczyk closed 4 years ago
I was able to get this running by more-or-less copying what https://github.com/dollarshaveclub/fastboot-docker did. I still think this should be easily done by config withing this server, but it's doable. I'm closing the issue.
After deploying an app powered by fastboot I noticed that assets (js + css files) are served with
Which is very unfortunate, because they are perfect for browser caching. I believe assets are served via https://expressjs.com/en/starter/static-files.html, which provides no primitives to set the headers.
Maybe it would be better to use something like https://expressjs.com/en/resources/middleware/serve-static.html, there seems to be a lot of cache-related setup available in it.
Thoughts? I might be able to throw in a PR.