jcdcdev.Umbraco.CloudflareMediaCache
17.0.1
dotnet add package jcdcdev.Umbraco.CloudflareMediaCache --version 17.0.1
NuGet\Install-Package jcdcdev.Umbraco.CloudflareMediaCache -Version 17.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="jcdcdev.Umbraco.CloudflareMediaCache" Version="17.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jcdcdev.Umbraco.CloudflareMediaCache" Version="17.0.1" />
<PackageReference Include="jcdcdev.Umbraco.CloudflareMediaCache" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add jcdcdev.Umbraco.CloudflareMediaCache --version 17.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: jcdcdev.Umbraco.CloudflareMediaCache, 17.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package jcdcdev.Umbraco.CloudflareMediaCache@17.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=17.0.1
#tool nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=17.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
jcdcdev.Umbraco.CloudflareMediaCache
- 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
Quick Start
Install Package
dotnet add package jcdcdev.Umbraco.CloudflareMediaCache
Get Cloudflare Zone ID & API Key
You will need a Cloudflare Zone ID and API Key to use this package.
- Zone ID: Find your Zone ID
- API Key: Create an API Key
Note: The API Key should have the following permission:
- Zone.Cache Purge
Configuration
Add the following section to your appsettings.json:
{
"Cloudflare": {
"Media": {
"Cache": {
"ZoneId": "ZONE_ID",
"ApiToken": "API_TOKEN",
"Enabled": true,
"Mode": "All",
"MaxAge": 2592000
}
}
}
}
Options
| 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) |
Contributing
Contributions to this package are most welcome! Please visit the Contributing page.
Acknowledgements (Thanks)
- LottePitcher - opinionated-package-starter
- jcdcdev - jcdcdev.Umbraco.PackageTemplate
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- CloudFlare.Client (>= 8.0.0)
- jcdcdev.Umbraco.Core (>= 17.0.0 && < 18.0.0)
- Umbraco.Cms.Core (>= 17.0.0 && < 18.0.0)
- Umbraco.Cms.Imaging.ImageSharp (>= 17.0.0 && < 18.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 17.0.1 | 90 | 12/26/2025 |
| 17.0.1-alpha.3 | 124 | 12/22/2025 |
| 17.0.0 | 118 | 11/29/2025 |
| 17.0.0-alpha.5 | 122 | 11/28/2025 |
| 17.0.0-alpha.2 | 136 | 11/26/2025 |
| 16.0.2 | 214 | 10/29/2025 |
| 16.0.2-alpha0008 | 178 | 10/21/2025 |
| 16.0.1 | 195 | 8/12/2025 |
| 16.0.1-alpha0009 | 174 | 8/10/2025 |
| 16.0.0 | 375 | 6/12/2025 |
| 16.0.0-alpha0006 | 329 | 6/12/2025 |
| 16.0.0-alpha0005 | 340 | 6/10/2025 |
| 15.0.2 | 206 | 6/16/2025 |
| 15.0.2-alpha0019 | 201 | 6/3/2025 |
| 15.0.2-alpha0009 | 133 | 5/10/2025 |
| 15.0.1 | 270 | 4/22/2025 |
| 15.0.1-alpha0002 | 211 | 4/21/2025 |
| 15.0.0 | 354 | 11/19/2024 |
| 15.0.0-alpha0007 | 141 | 11/17/2024 |
| 15.0.0-alpha0006 | 150 | 11/12/2024 |
| 15.0.0-alpha0004 | 143 | 10/17/2024 |
| 15.0.0-alpha0003 | 134 | 10/17/2024 |
| 15.0.0-alpha0001 | 148 | 10/9/2024 |
| 14.0.5 | 186 | 6/16/2025 |
| 14.0.4 | 219 | 4/22/2025 |
| 14.0.4-alpha0002 | 223 | 4/22/2025 |
| 14.0.3 | 183 | 10/8/2024 |
| 14.0.2 | 177 | 7/22/2024 |
| 14.0.2-alpha0002 | 142 | 7/22/2024 |
| 14.0.1 | 174 | 7/22/2024 |
| 14.0.1-alpha0006 | 157 | 7/1/2024 |
| 14.0.0 | 171 | 6/4/2024 |
| 14.0.0-alpha0002 | 160 | 6/4/2024 |
| 14.0.0-alpha0001 | 154 | 5/25/2024 |
| 13.0.8 | 166 | 12/21/2025 |
| 13.0.8-alpha0013 | 259 | 12/17/2025 |
| 13.0.8-alpha0005 | 126 | 11/29/2025 |
| 13.0.7 | 186 | 10/29/2025 |
| 13.0.7-alpha0008 | 171 | 10/21/2025 |
| 13.0.6 | 190 | 8/12/2025 |
| 13.0.6-alpha0003 | 192 | 8/10/2025 |
| 13.0.5 | 166 | 7/27/2025 |
| 13.0.5-alpha0008 | 204 | 7/16/2025 |
| 13.0.4 | 183 | 6/16/2025 |
| 13.0.4-alpha0012 | 324 | 6/12/2025 |
| 13.0.4-alpha0005 | 181 | 6/3/2025 |
| 13.0.3 | 218 | 4/23/2025 |
| 13.0.3-alpha0002 | 197 | 4/21/2025 |
| 13.0.2 | 214 | 3/30/2025 |
| 13.0.2-alpha0003 | 211 | 3/18/2025 |
| 13.0.1 | 240 | 10/28/2024 |
| 13.0.1-alpha0007 | 156 | 10/28/2024 |
| 13.0.0 | 280 | 5/25/2024 |
| 13.0.0-alpha0001 | 167 | 5/25/2024 |
| 12.0.1-pullrequest0034-0003 | 146 | 9/26/2024 |
| 12.0.1-pullrequest0029-0003 | 135 | 9/25/2024 |
| 12.0.0 | 152 | 5/25/2024 |
| 12.0.0-alpha0001 | 165 | 5/25/2024 |
| 10.0.5 | 337 | 6/12/2025 |
| 10.0.5-alpha0008 | 183 | 6/2/2025 |
| 10.0.4 | 204 | 3/30/2025 |
| 10.0.4-alpha0008 | 220 | 3/30/2025 |
| 10.0.4-alpha0003 | 205 | 3/18/2025 |
| 10.0.3 | 159 | 1/28/2025 |
| 10.0.3-alpha0003 | 152 | 1/28/2025 |
| 10.0.2 | 198 | 10/30/2024 |
| 10.0.2-alpha0003 | 139 | 10/28/2024 |
| 10.0.1 | 175 | 9/27/2024 |
| 10.0.1-alpha0016 | 157 | 9/26/2024 |
| 10.0.1-alpha0007 | 140 | 9/25/2024 |
| 10.0.0 | 191 | 5/25/2024 |
| 10.0.0-alpha0001 | 164 | 5/25/2024 |
| 0.1.1 | 216 | 5/12/2024 |
| 0.1.0 | 158 | 5/12/2024 |