The app will clean various federation caches regularly. Depending on the usage of an instance, the days cached resources should be kept can be configured via CACHE_RETENTION_DAYS in the cache-env.sh file.
By default all cached assets are kept for 2 days.