
6/21/2023 · Steven Bonisteel, Paulo Paracutu
What this post added
This post details how Kinsta used Cloudflare Workers and Workers KV to improve their cache hit rates by 56%. They implemented programmatic cache key customization by appending dynamic parameters based on Workers KV data to the request URL. This allowed them to reflect client-side configuration changes (like Polish and Auto Minify settings) in the cache key, ensuring that updated assets were served without manual cache purging. Additionally, they implemented microcaching of Workers KV data itself with a short TTL (30 seconds) to reduce read operations and latency.