- Automatically purge Cloudflare cache when media saved
- Purge by prefix (Cloudflare Pro & Enterprise)
- Purge all (All Cloudflare plans)
- Adds cache headers when serving media
- Respects image cropper
dotnet add package jcdcdev.Umbraco.CloudflareMediaCacheAdd the following section to your appsettings.json:
{
"Cloudflare": {
"Media": {
"Cache": {
"ZoneId": "ZONE_ID",
"ApiToken": "API_TOKEN",
"Enabled": true,
"Mode": "All",
"MaxAge": 2592000
}
}
}
}| Option | Description |
|---|---|
ZoneId |
The Cloudflare Zone ID |
Key |
The Cloudflare API Key |
Enabled |
Whether to enable functionality |
Mode |
The cache mode (All, Prefix) |
MaxAge |
The max-age for cache headers (seconds) |
Note
This project takes security and support seriously. Please visit the Security page for more information.
Contributions to this package are most welcome! Please visit the Contributing page.
Thank you to the following projects and individuals for their contributions. High five, you rock! π€π¦
- LottePitcher - opinionated-package-starter
- jcdcdev - jcdcdev.Umbraco.PackageTemplate