mui / mui-public

The public mono-repository of MUI (as an organization), see mui/mui-private for the opposite.
80 stars 16 forks source link

Cache the batched artifacts more aggressively #23

Closed eps1lon closed 4 years ago

eps1lon commented 4 years ago

Downloading all artifacts in the function can take a long time which means the actual response time is of the UI is slow. But once they're downloaded the response doesn't change since CircleCI builds and artifacts are immutable. The response should reflect that so the browser can cache it accordingly.

Part of #23

TODO: "Just" proxy artifact downloads. The current approach does not scale with the number of artifacts since netlify has a limit on the response size. We'll move this to the client (get a list of artifacts, request download for each). Should still be fast and we can re-use the caching approach and gzip it.