Caching
Reuse windows for every GymAssets response, and how long a theme change takes to appear.
Every response states how long it can be reused in its cache-control header. After
a key’s theme changes, images may show the previous palette for up to two minutes.
Cache windows
| Response | cache-control |
|---|---|
| Musclegram render | public, max-age=60 |
| Equipment artwork | public, max-age=3600 |
| Exercise art | public, max-age=3600 |
| Exercise art silhouette | public, max-age=300 |
| Image-host catalogue | public, max-age=300 |
| Data API | private, max-age=300 |
Theme change delay
Musclegram images keep the same URL when a key’s theme changes. The new palette appears within two minutes.
Shared caches
Data API responses are marked private. They answer for one account, and a shared
cache or proxy must not serve one account’s response to another.
This applies to catalogue responses as well. They are public data delivered over an authenticated request, and the credential boundary is what marks them private.