Asset Caching
To improve performance and reduce server load, assets served from Directus are cached at the edge by Cloudflare.
Cloudflare Cache Rule
Section titled “Cloudflare Cache Rule”There is a specific Cache Rule configured in the Cloudflare dashboard named Cache Directus Assets.
- Target: This rule targets any request matching the pattern
admin.innovspatial.com/assets/*. - Behavior: When a request matches this pattern, Cloudflare is instructed to cache the response.
- Cache Duration (TTL): The asset is cached for 1 day.
This means that once an asset (like an image or a file) is requested, it will be served directly from Cloudflare’s global network for 24 hours, resulting in faster load times for users worldwide.