jcdcdev.Umbraco.CloudflareMediaCache 16.0.2

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package jcdcdev.Umbraco.CloudflareMediaCache --version 16.0.2
                    
NuGet\Install-Package jcdcdev.Umbraco.CloudflareMediaCache -Version 16.0.2
                    
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="16.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="jcdcdev.Umbraco.CloudflareMediaCache" Version="16.0.2" />
                    
Directory.Packages.props
<PackageReference Include="jcdcdev.Umbraco.CloudflareMediaCache" />
                    
Project file
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 16.0.2
                    
#r "nuget: jcdcdev.Umbraco.CloudflareMediaCache, 16.0.2"
                    
#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@16.0.2
                    
#: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=16.0.2
                    
Install as a Cake Addin
#tool nuget:?package=jcdcdev.Umbraco.CloudflareMediaCache&version=16.0.2
                    
Install as a Cake Tool

jcdcdev.Umbraco.CloudflareMediaCache

Documentation Umbraco Marketplace License NuGet Downloads Project Website

  • 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.

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)

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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.

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.0-alpha0001 167 11/2/2025
16.0.2 184 10/29/2025
16.0.2-alpha0008 160 10/21/2025
16.0.1 182 8/12/2025
16.0.1-alpha0009 158 8/10/2025
16.0.0 353 6/12/2025
16.0.0-alpha0006 315 6/12/2025
16.0.0-alpha0005 314 6/10/2025
15.0.2 191 6/16/2025
15.0.2-alpha0019 185 6/3/2025
15.0.2-alpha0009 116 5/10/2025
15.0.1 253 4/22/2025
15.0.1-alpha0002 200 4/21/2025
15.0.0 342 11/19/2024
15.0.0-alpha0007 130 11/17/2024
15.0.0-alpha0006 134 11/12/2024
15.0.0-alpha0004 124 10/17/2024
15.0.0-alpha0003 117 10/17/2024
15.0.0-alpha0001 127 10/9/2024
14.0.5 169 6/16/2025
14.0.4 197 4/22/2025
14.0.4-alpha0002 202 4/22/2025
14.0.3 173 10/8/2024
14.0.2 165 7/22/2024
14.0.2-alpha0002 129 7/22/2024
14.0.1 159 7/22/2024
14.0.1-alpha0006 143 7/1/2024
14.0.0 160 6/4/2024
14.0.0-alpha0002 142 6/4/2024
14.0.0-alpha0001 143 5/25/2024
13.0.7 167 10/29/2025
13.0.7-alpha0008 154 10/21/2025
13.0.6 173 8/12/2025
13.0.6-alpha0003 175 8/10/2025
13.0.5 151 7/27/2025
13.0.5-alpha0008 184 7/16/2025
13.0.4 167 6/16/2025
13.0.4-alpha0012 309 6/12/2025
13.0.4-alpha0005 166 6/3/2025
13.0.3 194 4/23/2025
13.0.3-alpha0002 185 4/21/2025
13.0.2 195 3/30/2025
13.0.2-alpha0003 195 3/18/2025
13.0.1 220 10/28/2024
13.0.1-alpha0007 137 10/28/2024
13.0.0 266 5/25/2024
13.0.0-alpha0001 146 5/25/2024
12.0.1-pullrequest0034-0003 135 9/26/2024
12.0.1-pullrequest0029-0003 120 9/25/2024
12.0.0 140 5/25/2024
12.0.0-alpha0001 147 5/25/2024
10.0.5 317 6/12/2025
10.0.5-alpha0008 168 6/2/2025
10.0.4 186 3/30/2025
10.0.4-alpha0008 202 3/30/2025
10.0.4-alpha0003 192 3/18/2025
10.0.3 136 1/28/2025
10.0.3-alpha0003 134 1/28/2025
10.0.2 170 10/30/2024
10.0.2-alpha0003 123 10/28/2024
10.0.1 166 9/27/2024
10.0.1-alpha0016 141 9/26/2024
10.0.1-alpha0007 126 9/25/2024
10.0.0 178 5/25/2024
10.0.0-alpha0001 149 5/25/2024
0.1.1 199 5/12/2024
0.1.0 145 5/12/2024