Skip to content

Instantly share code, notes, and snippets.

@diboune
diboune / astro-sanity-cloudflare-cache-tags.md
Created January 23, 2026 08:44
Astro + Sanity + Cloudflare Cache Tags

Astro + Sanity + Cloudflare Cache Tags

A guide to implementing cache tags with Astro, Sanity CMS, and Cloudflare for efficient cache invalidation.

1. Astro page with cache tags

---
// src/pages/blog/[slug].astro
import { sanityClient } from '../../lib/sanity';