Skip to content

jcdcdev/jcdcdev.Umbraco.CloudflareMediaCache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

121 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cloudflare Media Cache

Documentation Umbraco Marketplace GitHub 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

Installation

Install Package

dotnet add package jcdcdev.Umbraco.CloudflareMediaCache

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)

Security

Note

This project takes security and support seriously. Please visit the Security page for more information.

Contributing

Contributions to this package are most welcome! Please visit the Contributing page.

Acknowledgements

Thank you to the following projects and individuals for their contributions. High five, you rock! πŸ€˜πŸ¦„

About

Control Cloudflare cache when media is updated in Umbraco 🌐

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors