I’m using Directus with the S3 driver (MinIO) and trying to understand how asset cache invalidation works for transformed images.
From what I can see:
- Image transformations requested via
/assets/{file-id}?width=…&quality=…&format=… - Are stored directly in the same bucket
- With hashed filenames that appear to encode the transformation parameters
- There is no separate
.cache/directory or prefix when using S3 / MinIO
Each unique combination of transform parameters generates a new derived object, and these objects persist indefinitely.
Questions
- Is there any built-in way to invalidate or purge transformed asset variants?
- Is there a recommended strategy to avoid cache bloat other than strictly limiting transform presets?
Tech stack & Version’s used:
Docker self-hosted: 11.14.0
Minio community edition with s3 driver