Enterprise customers can now optimize cache hit ratios for content that varies by device, language, or referrer by sharding cache using up to ten values from previously restricted headers with custom cache keys.
How it works
When configuring custom cache keys, you can now include values from these headers to create distinct cache entries:
accept*headers (for example,accept,accept-encoding,accept-language): Serve different cached versions based on content negotiation.refererheader: Cache content differently based on the referring page or site.user-agentheader: Maintain separate caches for different browsers, devices, or bots.
When to use cache sharding
- Content varies significantly by device type (mobile vs desktop).
- Different language or encoding preferences require distinct responses.
- Referrer-specific content optimization is needed.
Example configuration
{ "cache_key": { "custom_key": { "header": { "include": ["accept-language", "user-agent"], "check_presence": ["referer"] } } }}This configuration creates separate cache entries based on the accept-language and user-agent headers, while also considering whether the referer header is present.
Get started
To get started, refer to the custom cache keys documentation.
Source: Cloudflare
Latest Posts
- GCP Release Notes: February 12, 2026

- Dynamics 365 Project Operations – Public preview of the corrections for intercompany project transactions feature [MC1231506]
![Dynamics 365 Project Operations – Public preview of the corrections for intercompany project transactions feature [MC1231506] 3 pexels jeshoots com 147458 451590](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- Update PowerPoint to maintain Captions [MC1231437]
![Update PowerPoint to maintain Captions [MC1231437] 4 pexels vlad samoylik 173187996 11047218](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)
- (Updated) Microsoft Word, Excel, and PowerPoint agents: A new Copilot experience for content creation [MC1187799]
![(Updated) Microsoft Word, Excel, and PowerPoint agents: A new Copilot experience for content creation [MC1187799] 5 city 5213052 1920](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)


![Dynamics 365 Project Operations – Public preview of the corrections for intercompany project transactions feature [MC1231506] 3 pexels jeshoots com 147458 451590](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-jeshoots-com-147458-451590-150x150.webp)
![Update PowerPoint to maintain Captions [MC1231437] 4 pexels vlad samoylik 173187996 11047218](https://mwpro.co.uk/wp-content/uploads/2025/06/pexels-vlad-samoylik-173187996-11047218-150x150.webp)
![(Updated) Microsoft Word, Excel, and PowerPoint agents: A new Copilot experience for content creation [MC1187799] 5 city 5213052 1920](https://mwpro.co.uk/wp-content/uploads/2025/06/city-5213052_1920-150x150.webp)
