jcdcdev.Umbraco.CloudflareMediaCache
13.0.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package jcdcdev.Umbraco.CloudflareMediaCache --version 13.0.5
NuGet\Install-Package jcdcdev.Umbraco.CloudflareMediaCache -Version 13.0.5
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="13.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jcdcdev.Umbraco.CloudflareMediaCache" Version="13.0.5" />
<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 13.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: jcdcdev.Umbraco.CloudflareMediaCache, 13.0.5"
#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@13.0.5
#: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=13.0.5
#tool nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=13.0.5
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 | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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.
-
net8.0
- CloudFlare.Client (>= 8.0.0)
- jcdcdev.Umbraco.Core (>= 13.0.1 && < 14.0.0)
- SixLabors.ImageSharp.Web (>= 3.0.0 && < 4.0.0)
- Umbraco.Cms.Core (>= 13.0.0 && < 14.0.0)
- Umbraco.Cms.Infrastructure (>= 13.0.0 && < 14.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 |
---|---|---|
16.0.1 | 160 | 8/12/2025 |
16.0.1-alpha0009 | 143 | 8/10/2025 |
16.0.0 | 337 | 6/12/2025 |
16.0.0-alpha0006 | 281 | 6/12/2025 |
16.0.0-alpha0005 | 301 | 6/10/2025 |
15.0.2 | 157 | 6/16/2025 |
15.0.2-alpha0019 | 158 | 6/3/2025 |
15.0.2-alpha0009 | 102 | 5/10/2025 |
15.0.1 | 227 | 4/22/2025 |
15.0.1-alpha0002 | 175 | 4/21/2025 |
15.0.0 | 328 | 11/19/2024 |
15.0.0-alpha0007 | 106 | 11/17/2024 |
15.0.0-alpha0006 | 120 | 11/12/2024 |
15.0.0-alpha0004 | 107 | 10/17/2024 |
15.0.0-alpha0003 | 94 | 10/17/2024 |
15.0.0-alpha0001 | 104 | 10/9/2024 |
14.0.5 | 155 | 6/16/2025 |
14.0.4 | 182 | 4/22/2025 |
14.0.4-alpha0002 | 168 | 4/22/2025 |
14.0.3 | 161 | 10/8/2024 |
14.0.2 | 151 | 7/22/2024 |
14.0.2-alpha0002 | 104 | 7/22/2024 |
14.0.1 | 136 | 7/22/2024 |
14.0.1-alpha0006 | 116 | 7/1/2024 |
14.0.0 | 144 | 6/4/2024 |
14.0.0-alpha0002 | 125 | 6/4/2024 |
14.0.0-alpha0001 | 119 | 5/25/2024 |
13.0.6 | 158 | 8/12/2025 |
13.0.6-alpha0003 | 148 | 8/10/2025 |
13.0.5 | 115 | 7/27/2025 |
13.0.5-alpha0008 | 166 | 7/16/2025 |
13.0.4 | 144 | 6/16/2025 |
13.0.4-alpha0012 | 294 | 6/12/2025 |
13.0.4-alpha0005 | 142 | 6/3/2025 |
13.0.3 | 168 | 4/23/2025 |
13.0.3-alpha0002 | 156 | 4/21/2025 |
13.0.2 | 171 | 3/30/2025 |
13.0.2-alpha0003 | 170 | 3/18/2025 |
13.0.1 | 196 | 10/28/2024 |
13.0.1-alpha0007 | 114 | 10/28/2024 |
13.0.0 | 242 | 5/25/2024 |
13.0.0-alpha0001 | 122 | 5/25/2024 |
12.0.1-pullrequest0034-0003 | 123 | 9/26/2024 |
12.0.1-pullrequest0029-0003 | 106 | 9/25/2024 |
12.0.0 | 128 | 5/25/2024 |
12.0.0-alpha0001 | 114 | 5/25/2024 |
10.0.5 | 292 | 6/12/2025 |
10.0.5-alpha0008 | 153 | 6/2/2025 |
10.0.4 | 164 | 3/30/2025 |
10.0.4-alpha0008 | 170 | 3/30/2025 |
10.0.4-alpha0003 | 160 | 3/18/2025 |
10.0.3 | 124 | 1/28/2025 |
10.0.3-alpha0003 | 120 | 1/28/2025 |
10.0.2 | 132 | 10/30/2024 |
10.0.2-alpha0003 | 90 | 10/28/2024 |
10.0.1 | 121 | 9/27/2024 |
10.0.1-alpha0016 | 115 | 9/26/2024 |
10.0.1-alpha0007 | 114 | 9/25/2024 |
10.0.0 | 147 | 5/25/2024 |
10.0.0-alpha0001 | 117 | 5/25/2024 |
0.1.1 | 186 | 5/12/2024 |
0.1.0 | 123 | 5/12/2024 |