⚠️ This post links to an external website. ⚠️
Caddy can serve on-demand ACME certificates automatically, but what happens when customers want to provide their own? In this insightful piece by Mattias Geniar, the focus is on an essential enhancement for Caddy: caching
get_certificatelookups. This modification addresses a critical issue where each HTTPS handshake previously triggered a fresh fetch from the backend, resulting in unnecessary overhead.Geniar introduces a custom Caddy module named
caddy-get-certificate-cache, designed to cache certificates efficiently. The module replaces the stock HTTP getter, allowing Caddy to pull from its cache instead of querying the backend on every handshake. By honoring theCache-Controlheader and providing options for time-to-live (TTL), it effectively reduces network calls and speeds up certificate retrieval. This solution is poised to optimize performance and enhance the overall user experience before the new feature enters production.
continue reading onma.ttias.be
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.