# cache-control

Cache-Control is an HTTP header field containing directives that control caching in browsers and shared caches.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## datasette-leaflet 0.3

DevFeed: [datasette-leaflet 0.3](<https://devfeed.tech/articles/datasette-leaflet-0-3-133563.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Nov/13/datasette-leaflet/>)

Author: Simon Willison

Published: 2026-11-13T22:30:54Z

Content type: release

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [cache-control](<https://devfeed.tech/topics/cache-control.md>), [project release](<https://devfeed.tech/topics/project-release.md>)

Tags: [datasette](<https://devfeed.tech/tags/datasette.md>), [datasette-1-559](<https://devfeed.tech/tags/datasette-1-559.md>), [leaflet](<https://devfeed.tech/tags/leaflet.md>), [leaflet-47](<https://devfeed.tech/tags/leaflet-47.md>), [openstreetmap](<https://devfeed.tech/tags/openstreetmap.md>), [openstreetmap-57](<https://devfeed.tech/tags/openstreetmap-57.md>), [plugin](<https://devfeed.tech/tags/plugin.md>)

### AI overview

The datasette-leaflet 0.3 release fixes OpenStreetMap tile requests that previously conflicted with the service's referrer policy. Datasette table pages sent `Referrer-Policy: no-referrer`, so plugins loading OpenStreetMap tiles did not send the required referrer. The plugin now sets `strict-origin-when-cross-origin` on tile requests, which sends the page's host without its full path. datasette-leaflet bundles Leaflet for use by other Datasette plugins.

### Source excerpt

Release: datasette-leaflet 0.3 OpenStreetMap have a very reasonable policy that hits to their hosted tile server should send a referrer header. Datasette table pages used the Referrer-Policy: no-referrer HTTP header, causing plugins that loaded tiles from OpenStreetMap to violate that policy. datasette-leaflet is the plugin that loads a bundled Leaflet so other Datasette plugins can depend on it. It now sets the referrer policy on the tile requests themselves to strict-origin-when-cross-origin, passing the host but not the full path to the page. Tags: leaflet, datasette, openstreetmap

## What Is Web Cache Deception and How Can Attackers Exploit It?

DevFeed: [What Is Web Cache Deception and How Can Attackers Exploit It?](<https://devfeed.tech/articles/what-is-web-cache-deception-and-how-can-attackers-exploit-it-128459.md>)

Original publisher: [Read original article](<https://hackernoon.com/what-is-web-cache-deception-and-how-can-attackers-exploit-it?source=rss>)

Author: Martins Chibueze

Published: 2026-11-11T06:50:13Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [frontend security](<https://devfeed.tech/topics/frontend-security.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-key](<https://devfeed.tech/tags/api-key.md>), [appsec](<https://devfeed.tech/tags/appsec.md>), [attack](<https://devfeed.tech/tags/attack.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [audit](<https://devfeed.tech/tags/audit.md>), [burp-suite](<https://devfeed.tech/tags/burp-suite.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [cache-deception-armor](<https://devfeed.tech/tags/cache-deception-armor.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [clicks](<https://devfeed.tech/tags/clicks.md>), [client](<https://devfeed.tech/tags/client.md>), [cybersecurity](<https://devfeed.tech/tags/cybersecurity.md>), [data](<https://devfeed.tech/tags/data.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [file](<https://devfeed.tech/tags/file.md>), [penetration-testing](<https://devfeed.tech/tags/penetration-testing.md>), [portswigger](<https://devfeed.tech/tags/portswigger.md>), [prevent](<https://devfeed.tech/tags/prevent.md>), [private](<https://devfeed.tech/tags/private.md>), [static](<https://devfeed.tech/tags/static.md>), [url-parsing-vulnerability](<https://devfeed.tech/tags/url-parsing-vulnerability.md>), [web](<https://devfeed.tech/tags/web.md>), [web-security](<https://devfeed.tech/tags/web-security.md>)

### AI overview

Web cache deception can expose private, user-specific responses when a cache and origin server interpret the same URL differently. In the described PortSwigger lab, appending "x.css" to a private account URL left the origin serving the account page while the cache treated the .css suffix as a static-file rule; a later cache hit returned the user's API key. The text says attackers may lure victims to such URLs through links or phishing, then request the same URL to read the cached response. Suggested protections are to mark authenticated or personalized responses `Cache-Control: no-store, private`, ensure CDN rules honor that header, enable CDN-native protections such as Cloudflare Cache Deception Armor, which checks Content-Type against the requested extension, and audit URL parsing and normalization for cache-origin mismatches.

### Source excerpt

What happens when a web cache mistakes private data for a static file? Explore web cache deception attacks and how to prevent them.

## Exactly-Once Publishing on Cloudflare D1 Without Transactions

DevFeed: [Exactly-Once Publishing on Cloudflare D1 Without Transactions](<https://devfeed.tech/articles/exactly-once-publishing-on-cloudflare-d1-without-transactions-119321.md>)

Original publisher: [Read original article](<https://hackernoon.com/exactly-once-publishing-on-cloudflare-d1-without-transactions?source=rss>)

Author: horushe

Published: 2026-11-05T15:44:50Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [database-consistency](<https://devfeed.tech/topics/database-consistency.md>), [Transactions](<https://devfeed.tech/topics/transactions.md>), [race-condition](<https://devfeed.tech/topics/race-condition.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [Cloudflare Workers](<https://devfeed.tech/topics/cloudflare-workers.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [atomic](<https://devfeed.tech/tags/atomic.md>), [batches](<https://devfeed.tech/tags/batches.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-d1](<https://devfeed.tech/tags/cloudflare-d1.md>), [cloudflare-workers](<https://devfeed.tech/tags/cloudflare-workers.md>), [concurrency](<https://devfeed.tech/tags/concurrency.md>), [concurrent](<https://devfeed.tech/tags/concurrent.md>), [condition](<https://devfeed.tech/tags/condition.md>), [content](<https://devfeed.tech/tags/content.md>), [d1](<https://devfeed.tech/tags/d1.md>), [distributed-locks](<https://devfeed.tech/tags/distributed-locks.md>), [distributed-systems](<https://devfeed.tech/tags/distributed-systems.md>), [exactly-once](<https://devfeed.tech/tags/exactly-once.md>), [exactly-once-processing](<https://devfeed.tech/tags/exactly-once-processing.md>), [fencing](<https://devfeed.tech/tags/fencing.md>), [fencing-tokens](<https://devfeed.tech/tags/fencing-tokens.md>), [learn-how-to](<https://devfeed.tech/tags/learn-how-to.md>), [publishing](<https://devfeed.tech/tags/publishing.md>), [race-conditions](<https://devfeed.tech/tags/race-conditions.md>), [revision](<https://devfeed.tech/tags/revision.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [sql](<https://devfeed.tech/tags/sql.md>), [transactions](<https://devfeed.tech/tags/transactions.md>)

### AI overview

The article's D1 publishing design combines expiring leases with fencing tokens and SQL guards inside every write. The final batch inserts the page only if lease and content checks still hold, then uses a random commit token to conditionally update the publication ledger and revision; a stale writer therefore makes no partial changes. Cache invalidation uses a global publication revision in cache keys instead of purges, with short lifetimes capped at scheduled visibility changes such as a post-midnight grace window. The tradeoff is one primary database read per cacheable request. A separate single-statement SQLite insert enforces unique sessions, dense slots and a 50,000-row puzzle limit. The article reports concurrent integration runs on Worker, D1 and R2 that published six pages once each and stored seven images once each.

### Source excerpt

Learn how to prevent duplicate writes in Cloudflare D1 using fencing tokens, guarded SQL batches, and revision-based cache invalidation.

## Next.js Caching: How to Fix revalidate Failures and Stale Data

DevFeed: [Next.js Caching: How to Fix revalidate Failures and Stale Data](<https://devfeed.tech/articles/next-js-caching-how-to-fix-revalidate-failures-and-stale-data-87797.md>)

Original publisher: [Read original article](<https://www.sitepoint.com/nextjs-caching-revalidate-not-working/>)

Author: SitePoint Team

Published: 2026-10-15T15:48:29Z

Content type: tutorial

Language: en

Sources: [SitePoint](<https://devfeed.tech/sources/sitepoint.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [cache-control](<https://devfeed.tech/tags/cache-control.md>), [caching](<https://devfeed.tech/tags/caching.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [next-js-caching](<https://devfeed.tech/tags/next-js-caching.md>), [programming](<https://devfeed.tech/tags/programming.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

This tutorial explains how to diagnose Next.js 15 caching and revalidation problems across the Data, Full Route, and Router caches. It covers configuration conflicts, dynamic rendering, deployment cache headers, and on-demand invalidation. It also explains how treating a transient CMS failure as notFound() can cache a 404, and presents a fetch helper that distinguishes confirmed missing resources from temporary errors so stale valid pages can continue to be served.

### Source excerpt

Fix Next.js pages that stay stale or turn into cached 404s. Learn why revalidate fails, how notFound() can cache a 404 during a CMS outage, and a safer fetch helper. Continue reading Next.js Caching: How to Fix revalidate Failures and Stale Data on SitePoint.

## CVE-2026-108082: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header

DevFeed: [CVE-2026-108082: ReDoS in HeaderUtils::split() Reachable Through the Cache-Control Request Header](<https://devfeed.tech/articles/cve-2026-108082-redos-in-headerutils-split-reachable-through-the-cache-control-request-header-87538.md>)

Original publisher: [Read original article](<https://symfony.com/blog/cve-2026-108082-redos-in-headerutils-split-reachable-through-the-cache-control-request-header>)

Author: Fabien Potencier

Published: 2026-10-15T08:00:00Z

Content type: news

Language: en

Sources: [Symfony](<https://devfeed.tech/sources/symfony-blog.md>)

Topics: [frontend security](<https://devfeed.tech/topics/frontend-security.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [cache-control](<https://devfeed.tech/tags/cache-control.md>), [http](<https://devfeed.tech/tags/http.md>), [security](<https://devfeed.tech/tags/security.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

### AI overview

A regular expression denial-of-service vulnerability in Symfony HTTP Foundation's HeaderUtils::split() was reachable through the Cache-Control request header without authentication. A crafted header could consume substantial CPU, and sufficiently long whitespace runs caused the parser to drop all directives. Symfony fixed the issue across supported branches; the initial fix also caused a whitespace-separator regression, addressed in subsequent releases.

### Source excerpt

Affected versions Symfony HTTP Foundation versions >=5.4.1, <5.4.54, >=6.0.1, <6.4.46, >=7, <7.4.19, >=8, <8.1.7 are affected by this security issue. The issue has been fixed in Symfony HTTP Foundation 5.4.54, 6.4.46, 7.4.19, 8.1.7....

## What Is Caching? A Complete Guide for Developers

DevFeed: [What Is Caching? A Complete Guide for Developers](<https://devfeed.tech/articles/what-is-caching-a-complete-guide-for-developers-87029.md>)

Original publisher: [Read original article](<https://talent500.com/blog/caching/>)

Author: Kashif Khan

Published: 2026-10-14T15:27:26Z

Content type: tutorial

Language: en

Sources: [Talent500](<https://devfeed.tech/sources/backend-archives-talent500-blog.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Memcached](<https://devfeed.tech/topics/memcached.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [backend-technology](<https://devfeed.tech/tags/backend-technology.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [caching](<https://devfeed.tech/tags/caching.md>), [database](<https://devfeed.tech/tags/database.md>), [guide](<https://devfeed.tech/tags/guide.md>), [latency](<https://devfeed.tech/tags/latency.md>), [performance](<https://devfeed.tech/tags/performance.md>)

### AI overview

This guide explains how caching works across hardware and software layers, with examples of application, distributed, browser, and CDN caching. It covers cache hits and misses, performance benefits, expiration and invalidation, eviction, consistency, and security considerations.

### Source excerpt

Caching improves application performance by storing frequently accessed data in temporary storage for faster retrieval. Explore caching strategies, types, implementation techniques, cache invalidation, and tools that help reduce latency, database load, and response times. The post What Is Caching? A Complete Guide for Developers appeared first on Talent500 blog.

## How Multi-Layer Caching Complicates Data Consistency in Production

DevFeed: [How Multi-Layer Caching Complicates Data Consistency in Production](<https://devfeed.tech/articles/how-multi-layer-caching-complicates-data-consistency-in-production-85734.md>)

Original publisher: [Read original article](<https://hackernoon.com/how-multi-layer-caching-complicates-data-consistency-in-production?source=rss>)

Author: Artem Biriukov

Published: 2026-10-12T17:26:27Z

Content type: article

Language: en

Sources: [HackerNoon](<https://devfeed.tech/sources/hackernoon.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>)

Tags: [cache-control](<https://devfeed.tech/tags/cache-control.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [cache-observability](<https://devfeed.tech/tags/cache-observability.md>), [cache-ttl](<https://devfeed.tech/tags/cache-ttl.md>), [caching](<https://devfeed.tech/tags/caching.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [data-consistency](<https://devfeed.tech/tags/data-consistency.md>), [in-memory-caching](<https://devfeed.tech/tags/in-memory-caching.md>), [multi-layer-caching](<https://devfeed.tech/tags/multi-layer-caching.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [next-js-caching](<https://devfeed.tech/tags/next-js-caching.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [node](<https://devfeed.tech/tags/node.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [production-architecture](<https://devfeed.tech/tags/production-architecture.md>), [stale-while-revalidate](<https://devfeed.tech/tags/stale-while-revalidate.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

### AI overview

The article explains how independent caching layers in a production e-commerce system--spanning Nginx, Next.js, Symfony, and application memory--complicate data freshness and consistency. It discusses process-local caches across eight Node.js processes, request coalescing, cache misses, TTLs, and approaches such as explicit invalidation, selective shared caching, and observability.

### Source excerpt

I learned why caching across Nginx, Next.js, and Symfony creates freshness challenges, especially when eight Node.js processes maintain separate caches.

## Next.js 16.4

DevFeed: [Next.js 16.4](<https://devfeed.tech/articles/next-js-16-4-65683.md>)

Original publisher: [Read original article](<https://nextjs.org/blog/next-16-4>)

Published: 2026-10-06T20:00:00Z

Content type: release

Language: en

Sources: [Next.js](<https://devfeed.tech/sources/next-js-blog.md>)

Topics: [Next.js](<https://devfeed.tech/topics/next-js.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [React](<https://devfeed.tech/topics/react.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [caching](<https://devfeed.tech/tags/caching.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [developer-tooling](<https://devfeed.tech/tags/developer-tooling.md>), [next-js](<https://devfeed.tech/tags/next-js.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

### AI overview

Next.js 16.4 recommends Cache Components for all Next.js apps and enables them by default in new apps. The release adds static-rendering guarantees, more control over prefetching, and agent-assisted upgrade and feedback workflows. It also includes Turbopack performance and bundle improvements, React 19.3, and experimental compiler and development features.

### Source excerpt

Next.js 16.4 introduces lazy compilation, smaller Turbopack output, React 19.3 features, Cache Components improvements, and new developer tooling.

## New in Symfony 8.2: Targeted Cache-Control and Cache-Status Headers

DevFeed: [New in Symfony 8.2: Targeted Cache-Control and Cache-Status Headers](<https://devfeed.tech/articles/new-in-symfony-8-2-targeted-cache-control-and-cache-status-headers-64732.md>)

Original publisher: [Read original article](<https://symfony.com/blog/new-in-symfony-8-2-targeted-cache-control-and-cache-status-headers>)

Author: Javier Eguiluz

Published: 2026-10-05T07:19:00Z

Content type: article

Language: en

Sources: [Symfony](<https://devfeed.tech/sources/symfony-blog.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [Symfony](<https://devfeed.tech/topics/symfony.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [nginx](<https://devfeed.tech/topics/nginx.md>)

Tags: [caching](<https://devfeed.tech/tags/caching.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [headers](<https://devfeed.tech/tags/headers.md>), [http](<https://devfeed.tech/tags/http.md>), [symfony](<https://devfeed.tech/tags/symfony.md>)

### AI overview

Symfony 8.2 adds support for targeted Cache-Control headers, allowing separate caching rules for CDNs and browsers, and for the Cache-Status header, which reports whether a cache hit, fetched, or reused a response. The article also explains how to configure these features and notes that Cache-Status is disabled by default because it can expose cache details.

### Source excerpt

An HTTP response can pass through several caches before it reaches the user, and you may want different rules for each one. Symfony 8.2 adds support for two HTTP headers: one to set those rules, and another to see what happened to a request. Targeted Cache-Control...

## Vercel CDN no longer caches responses with Vary: Cookie

DevFeed: [Vercel CDN no longer caches responses with Vary: Cookie](<https://devfeed.tech/articles/vercel-cdn-no-longer-caches-responses-with-vary-cookie-62880.md>)

Original publisher: [Read original article](<https://vercel.com/changelog/vary-cookie-responses-no-longer-cached>)

Author: Kelly Davis

Published: 2026-09-30T00:00:00Z

Content type: release

Language: en

Sources: [Vercel News](<https://devfeed.tech/sources/vercel-news.md>)

Topics: [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Vercel](<https://devfeed.tech/topics/vercel.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [cookies](<https://devfeed.tech/tags/cookies.md>), [header](<https://devfeed.tech/tags/header.md>), [headers](<https://devfeed.tech/tags/headers.md>), [logs](<https://devfeed.tech/tags/logs.md>), [request](<https://devfeed.tech/tags/request.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [vercel](<https://devfeed.tech/tags/vercel.md>)

### AI overview

Vercel CDN no longer caches origin responses when Vary includes Cookie, because cookie-dependent variation can create many rarely reused cache entries. Check the x-vercel-cache header and Runtime Logs for affected responses. If the response does not vary by cookies, remove Cookie from Vary; if it is personalized, retain it and use Cache-Control: private.

### Source excerpt

Vercel CDN no longer caches origin responses when Vary includes Cookie. Vary tells a cache which request headers may change the response. Because cookies often contain visitor-specific values, varying by Cookie can create many cache entries that are rarely reused. The response is still served normally but isn't stored for future requests. You can identify these responses by checking the x-vercel-cache header and Runtime Logs. The header is set to MISS, and Logs show vary_key_denied:cookie as the cache reason. If Logs show vary_key_denied:cookie for a route you expect to be cached, check the Vary header returned by your origin: If the response is the same regardless of cookies, remove Cookie from Vary. Vercel CDN can then cache it if it meets the other caching requirements. If the response depends on cookies, keep Cookie in Vary and use Cache-Control: private to prevent personalized responses from being stored in the shared CDN cache. Caching behavior for other supported Vary headers is unchanged. Learn more about high-cardinality headers and the vary_key_denied cache reason. Read more

## We just shipped support for the ugliest part of HTTP: Vary

DevFeed: [We just shipped support for the ugliest part of HTTP: Vary](<https://devfeed.tech/articles/we-just-shipped-support-for-the-ugliest-part-of-http-vary-60673.md>)

Original publisher: [Read original article](<https://simonwillison.net/2026/Sep/23/hn-49823961/>)

Author: Simon Willison

Published: 2026-09-23T23:14:57Z

Content type: article

Language: en

Sources: [Simon Willison's Weblog](<https://devfeed.tech/sources/simon-willison-s-weblog.md>)

Topics: [HTTP](<https://devfeed.tech/topics/http.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [JSON](<https://devfeed.tech/topics/json.md>)

Tags: [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-34](<https://devfeed.tech/tags/cloudflare-34.md>), [http](<https://devfeed.tech/tags/http.md>), [http-125](<https://devfeed.tech/tags/http-125.md>)

### AI overview

The author welcomes Cloudflare support for the HTTP Vary header in caching, which lets responses vary by request headers such as Accept. Previously, Cloudflare could cache one format and serve it to clients expecting another. The author says they still prefer predictable URLs, using a .json suffix when an app should return JSON.

### Source excerpt

My comment on We just shipped support for the ugliest part of HTTP: Vary -- Hacker News. I've been wanting this from Cloudflare for years. The classic problem here is if you do that thing where user agents that send "accept: text/html" get HTML, while user agents that don't get JSON or some other format. This used to be impossible to deploy behind Cloudflare caching, because they ignored the Vary header on anything other than images - so you risked caching the JSON version and then serving it up to someone who was expecting HTML. (Independent of the Cloudflare feature I ended up deciding never to use that pattern, because I prefer having URL that predictably returns HTML or JSON - I add a .json suffix to my apps to serve JSON instead.) Tags: http, cloudflare

## Vary -- the cache key contract

DevFeed: [Vary -- the cache key contract](<https://devfeed.tech/articles/vary-the-cache-key-contract-89145.md>)

Original publisher: [Read original article](<https://specification.website/spec/performance/vary/>)

Author: Joost de Valk

Published: 2026-09-10T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [curl](<https://devfeed.tech/tags/curl.md>), [https](<https://devfeed.tech/tags/https.md>), [performance](<https://devfeed.tech/tags/performance.md>), [recommended](<https://devfeed.tech/tags/recommended.md>)

### AI overview

This tutorial explains how the HTTP `Vary` response header controls which cached representation can be reused for a request. It covers content negotiation, cache fragmentation, correct header placement, and verification through a CDN.

### Source excerpt

Vary lists the request headers your server branched on when it chose this representation. Get it wrong and a cache hands one visitor's response to another; list too much and the cache stops working at all.

## Cache-Control headers

DevFeed: [Cache-Control headers](<https://devfeed.tech/articles/cache-control-headers-89123.md>)

Original publisher: [Read original article](<https://specification.website/spec/performance/cache-control/>)

Author: Joost de Valk

Published: 2026-08-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [Data Management](<https://devfeed.tech/topics/data-management.md>), [nginx](<https://devfeed.tech/topics/nginx.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [gzip](<https://devfeed.tech/tags/gzip.md>), [headers](<https://devfeed.tech/tags/headers.md>), [http](<https://devfeed.tech/tags/http.md>), [https](<https://devfeed.tech/tags/https.md>), [lighthouse](<https://devfeed.tech/tags/lighthouse.md>), [performance](<https://devfeed.tech/tags/performance.md>), [required](<https://devfeed.tech/tags/required.md>)

### AI overview

Cache-Control is an HTTP response header that sets how browsers and shared caches store and reuse responses. The article recommends long-lived immutable caching for fingerprinted assets, short or no caching for HTML, and appropriate privacy, variation, and stale-response directives.

### Source excerpt

Cache-Control tells browsers and CDNs how long to keep a response. Use immutable + max-age=31536000 for fingerprinted assets and short or no-cache for HTML.

## HTTP QUERY: the method that was missing between GET and POST

DevFeed: [HTTP QUERY: the method that was missing between GET and POST](<https://devfeed.tech/articles/http-query-the-method-that-was-missing-between-get-and-post-17866.md>)

Original publisher: [Read original article](<https://www.codemotion.com/magazine/backend/http-query-the-method-that-was-missing-between-get-and-post/>)

Author: Matteo Baccan

Published: 2026-07-29T12:26:29Z

Content type: article

Language: en

Sources: [Codemotion Magazine](<https://devfeed.tech/sources/backend-job-skill-salary-and-insights-codemotion-magazine.md>)

Topics: [REST API](<https://devfeed.tech/topics/rest-api.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [frontend security](<https://devfeed.tech/topics/frontend-security.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [backend](<https://devfeed.tech/tags/backend.md>), [body](<https://devfeed.tech/tags/body.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [caching](<https://devfeed.tech/tags/caching.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [http](<https://devfeed.tech/tags/http.md>), [http-query](<https://devfeed.tech/tags/http-query.md>), [idempotency](<https://devfeed.tech/tags/idempotency.md>), [ietf](<https://devfeed.tech/tags/ietf.md>), [languages](<https://devfeed.tech/tags/languages.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [load-balancing](<https://devfeed.tech/tags/load-balancing.md>), [post](<https://devfeed.tech/tags/post.md>), [query](<https://devfeed.tech/tags/query.md>), [request](<https://devfeed.tech/tags/request.md>), [search](<https://devfeed.tech/tags/search.md>), [sensitive-data](<https://devfeed.tech/tags/sensitive-data.md>)

### AI overview

The excerpt presents HTTP QUERY as a proposed way to send complex or sensitive queries in a request body while retaining the safety and idempotency associated with GET. It frames QUERY as addressing GET's URI length limits and the exposure risk of putting sensitive parameters in logged URLs, while avoiding POST's loss of GET-like semantics. The cited RFC 10008 is described as an IETF Proposed Standard published in June 2026. Adoption will require updates across the web ecosystem and may take years; existing components may reject QUERY with 405. The excerpt does not provide the promised implementation or detailed caching and security guidance.

### Source excerpt

For nearly thirty years, the Web has lived with a semantic paradox that anyone developing for the backend knows well: how do you execute a complex, voluminous query, or one containing sensitive data, if the only "safe" method available does not allow a request body? Think about when we need to send a structured search... Read more The post HTTP QUERY: the method that was missing between GET and POST appeared first on Codemotion Magazine.

## Redirect-By header

DevFeed: [Redirect-By header](<https://devfeed.tech/articles/redirect-by-header-89163.md>)

Original publisher: [Read original article](<https://specification.website/spec/resilience/redirect-by/>)

Author: Joost de Valk

Published: 2026-07-14T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [webservice](<https://devfeed.tech/topics/webservice.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [middleware](<https://devfeed.tech/topics/middleware.md>)

Tags: [cdn](<https://devfeed.tech/tags/cdn.md>), [client](<https://devfeed.tech/tags/client.md>), [cloudflare-pages](<https://devfeed.tech/tags/cloudflare-pages.md>), [headers](<https://devfeed.tech/tags/headers.md>), [http](<https://devfeed.tech/tags/http.md>), [inspect](<https://devfeed.tech/tags/inspect.md>), [recommended](<https://devfeed.tech/tags/recommended.md>), [redirect](<https://devfeed.tech/tags/redirect.md>), [resilience](<https://devfeed.tech/tags/resilience.md>)

### AI overview

The article describes the proposed `Redirect-By` response header, which identifies the software that issued a redirect to help diagnose redirect chains. It recommends emitting the unprefixed header, recognizing the widely deployed `X-Redirect-By` variant, and avoiding detailed values that could expose internal infrastructure.

### Source excerpt

The Redirect-By response header names the software that issued a redirect, so anyone debugging a redirect chain can see at a glance which system to fix. It is deployed today under the legacy name X-Redirect-By.

## No-Vary-Search response header

DevFeed: [No-Vary-Search response header](<https://devfeed.tech/articles/no-vary-search-response-header-89137.md>)

Original publisher: [Read original article](<https://specification.website/spec/performance/no-vary-search/>)

Author: Joost de Valk

Published: 2026-07-09T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [search-engines](<https://devfeed.tech/topics/search-engines.md>), [Google Search](<https://devfeed.tech/topics/google-search.md>)

Tags: [cache-control](<https://devfeed.tech/tags/cache-control.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [chrome-devtools](<https://devfeed.tech/tags/chrome-devtools.md>), [edge](<https://devfeed.tech/tags/edge.md>), [http](<https://devfeed.tech/tags/http.md>), [performance](<https://devfeed.tech/tags/performance.md>), [recommended](<https://devfeed.tech/tags/recommended.md>), [url](<https://devfeed.tech/tags/url.md>), [utm](<https://devfeed.tech/tags/utm.md>)

### AI overview

The No-Vary-Search response header lets browsers and shared caches reuse a response when selected URL query parameters do not affect its content. The tutorial explains how to configure it for tracking parameters and parameter order, how it can improve prefetch and cache hits, common configuration mistakes, and ways to verify the behavior.

### Source excerpt

The `No-Vary-Search` response header tells browsers and caches that some URL query parameters (tracking, UTM, sort order) do not change the response. The cached entry for the canonical URL is reused for variants -- fewer fetches, better prefetch hits, less duplicate work.

## Back/forward cache

DevFeed: [Back/forward cache](<https://devfeed.tech/articles/back-forward-cache-85510.md>)

Original publisher: [Read original article](<https://web.dev/articles/bfcache?hl=en>)

Author: Philip Walton X GitHub LinkedIn Mastodon Bluesky Homepage Barry Pollard X GitHub Mastodon Bluesky Homepage

Published: 2026-07-02T07:00:00Z

Content type: tutorial

Language: en

Sources: [web.dev](<https://devfeed.tech/sources/web-dev-articles.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Core Web Vitals](<https://devfeed.tech/topics/core-web-vitals.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [caching](<https://devfeed.tech/tags/caching.md>), [chrome-user-experience-report](<https://devfeed.tech/tags/chrome-user-experience-report.md>), [core-web-vitals](<https://devfeed.tech/tags/core-web-vitals.md>)

### AI overview

The back/forward cache (bfcache) preserves a page in memory when a user navigates away, allowing near-instant restoration and reducing repeat downloads. This tutorial explains how developers can improve bfcache eligibility, handle restored page state and connections, test cacheability, and account for restores in analytics and performance metrics.

### Source excerpt

Learn to optimize your pages for instant loads when using the browser's back and forward buttons.

## Server-Timing header

DevFeed: [Server-Timing header](<https://devfeed.tech/articles/server-timing-header-89143.md>)

Original publisher: [Read original article](<https://specification.website/spec/performance/server-timing/>)

Author: Joost de Valk

Published: 2026-06-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [The Website Specification](<https://devfeed.tech/sources/the-website-specification.md>)

Topics: [database monitoring](<https://devfeed.tech/topics/database-monitoring.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [synthetic monitoring](<https://devfeed.tech/topics/synthetic-monitoring.md>), [Interaction to Next Paint](<https://devfeed.tech/topics/interaction-to-next-paint.md>)

Tags: [cache](<https://devfeed.tech/tags/cache.md>), [cloudflare-pages](<https://devfeed.tech/tags/cloudflare-pages.md>), [core-web-vitals](<https://devfeed.tech/tags/core-web-vitals.md>), [counts](<https://devfeed.tech/tags/counts.md>), [database](<https://devfeed.tech/tags/database.md>), [devtools](<https://devfeed.tech/tags/devtools.md>), [header](<https://devfeed.tech/tags/header.md>), [http](<https://devfeed.tech/tags/http.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [interface](<https://devfeed.tech/tags/interface.md>), [name](<https://devfeed.tech/tags/name.md>), [optional](<https://devfeed.tech/tags/optional.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-metrics](<https://devfeed.tech/tags/performance-metrics.md>), [real-user-monitoring](<https://devfeed.tech/tags/real-user-monitoring.md>), [rum](<https://devfeed.tech/tags/rum.md>), [server](<https://devfeed.tech/tags/server.md>), [timing](<https://devfeed.tech/tags/timing.md>)

### AI overview

The article explains how the Server-Timing HTTP response header exposes server-side performance metrics in browser DevTools and through JavaScript for real-user monitoring. It describes emitting and collecting metrics, notes cross-origin access requirements, and cautions against exposing sensitive infrastructure details.

### Source excerpt

Server-Timing surfaces backend metrics -- database time, cache hits, edge processing -- in browser DevTools and to RUM via the PerformanceServerTiming API. Send it when you measure server-side latency, and keep the values free of sensitive infrastructure detail.

## Response Caching: Zero Cost for Identical Requests

DevFeed: [Response Caching: Zero Cost for Identical Requests](<https://devfeed.tech/articles/response-caching-zero-cost-for-identical-requests-78575.md>)

Original publisher: [Read original article](<https://openrouter.ai/blog/announcements/response-caching/>)

Author: Brian Thomas

Published: 2026-04-30T18:00:00Z

Content type: release

Language: en

Sources: [OpenRouter](<https://devfeed.tech/sources/openrouter.md>)

Topics: [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Chat completions endpoints](<https://devfeed.tech/topics/chat-completions-endpoints.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cost](<https://devfeed.tech/tags/cost.md>), [response-caching](<https://devfeed.tech/tags/response-caching.md>)

### AI overview

OpenRouter has introduced response caching for identical requests on supported generation endpoints. Requests can enable it with a header or preset; cache hits return the saved response without another provider call or token charge. The feature supports streaming and non-streaming requests and is currently in beta.

### Source excerpt

Introducing the new Response Caching header: enables caching identical API requests so responses come back in a tiny fraction of the time, at zero cost.

## Introducing Response Caching: GraphQL-aware performance for your graph

DevFeed: [Introducing Response Caching: GraphQL-aware performance for your graph](<https://devfeed.tech/articles/introducing-response-caching-graphql-aware-performance-for-your-graph-23420.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/introducing-response-caching>)

Author: Benjamin Coenen

Published: 2026-01-15T09:00:00Z

Content type: release

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [GraphOS](<https://devfeed.tech/topics/graphos.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [graphql-federation](<https://devfeed.tech/topics/graphql-federation.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [Apollo Federation](<https://devfeed.tech/topics/apollo-federation.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>)

Tags: [announcement](<https://devfeed.tech/tags/announcement.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [caching](<https://devfeed.tech/tags/caching.md>), [data](<https://devfeed.tech/tags/data.md>), [data-privacy](<https://devfeed.tech/tags/data-privacy.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [directives](<https://devfeed.tech/tags/directives.md>), [federated](<https://devfeed.tech/tags/federated.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [graphos](<https://devfeed.tech/tags/graphos.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [headers](<https://devfeed.tech/tags/headers.md>), [http](<https://devfeed.tech/tags/http.md>), [inventory](<https://devfeed.tech/tags/inventory.md>), [latency](<https://devfeed.tech/tags/latency.md>), [migration](<https://devfeed.tech/tags/migration.md>), [performance](<https://devfeed.tech/tags/performance.md>), [response-caching](<https://devfeed.tech/tags/response-caching.md>), [router](<https://devfeed.tech/tags/router.md>), [services](<https://devfeed.tech/tags/services.md>)

### AI overview

GraphOS Router's new response cache stores root query results and entity representations separately, allowing multiple queries to reuse origin data and reduce redundant subgraph calls. It uses Redis and includes a cache debugger. The router derives TTLs from HTTP Cache-Control headers, which come from schema @cacheControl directives; when a payload contains multiple entity representations, it applies the minimum TTL. Shared entries can serve stable, non-personalized data, while personalized data remains isolated as needed. This router-native replacement for entity caching is designed for federated GraphQL workloads; entity caching remains in preview and is slated for deprecation.

### Source excerpt

Response caching is now available in the GraphOS Router, bringing GraphQL-aware caching that reduces load on your services and improves end-to-end latency across your graph.

## GIF Prompts, Omni Search, Tool Caching, and BYOK Flags

DevFeed: [GIF Prompts, Omni Search, Tool Caching, and BYOK Flags](<https://devfeed.tech/articles/gif-prompts-omni-search-tool-caching-and-byok-flags-78542.md>)

Original publisher: [Read original article](<https://openrouter.ai/blog/announcements/gif-prompts-omni-search-tool-caching-and-byok-flags/>)

Author: OpenRouter

Published: 2025-06-04T00:00:00Z

Content type: release

Language: en

Sources: [OpenRouter](<https://devfeed.tech/sources/openrouter.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>), [generative-ai-tools](<https://devfeed.tech/topics/generative-ai-tools.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [anthropic](<https://devfeed.tech/tags/anthropic.md>), [caching](<https://devfeed.tech/tags/caching.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [gif](<https://devfeed.tech/tags/gif.md>), [latency](<https://devfeed.tech/tags/latency.md>), [llama](<https://devfeed.tech/tags/llama.md>), [openai](<https://devfeed.tech/tags/openai.md>), [openrouter](<https://devfeed.tech/tags/openrouter.md>), [token-usage](<https://devfeed.tech/tags/token-usage.md>), [tooling](<https://devfeed.tech/tags/tooling.md>)

### AI overview

OpenRouter released several developer features: GIF prompts for OpenAI, Gemini, Anthropic, and Llama models; provider pages in Omni-Search; caching for Anthropic tool calls; and an `is_byok` usage flag to confirm whether a bring-your-own-key setup was used.

### Source excerpt

Faster workflows, smarter tooling, and smoother image support--GIFs, provider search, Anthropic tool-call caching, and BYOK confirmation are all now live.

## Why Do We Have a Cache-Control Request Header?

DevFeed: [Why Do We Have a Cache-Control Request Header?](<https://devfeed.tech/articles/why-do-we-have-a-cache-control-request-header-45675.md>)

Original publisher: [Read original article](<https://csswizardry.com/2025/03/why-do-we-have-a-cache-control-request-header/>)

Author: Harry Roberts

Published: 2025-03-07T15:55:04Z

Content type: article

Language: en

Sources: [CSS Wizardry](<https://devfeed.tech/sources/css-wizardry.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [Firefox](<https://devfeed.tech/topics/firefox.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Google Chrome](<https://devfeed.tech/topics/google-chrome.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [caching](<https://devfeed.tech/tags/caching.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [client](<https://devfeed.tech/tags/client.md>), [developers](<https://devfeed.tech/tags/developers.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [headers](<https://devfeed.tech/tags/headers.md>), [performance](<https://devfeed.tech/tags/performance.md>), [request](<https://devfeed.tech/tags/request.md>), [web-performance](<https://devfeed.tech/tags/web-performance.md>)

### AI overview

This article explains the Cache-Control request header and how it affects browser caching, refreshes, hard refreshes, revalidation, CDN behavior, and network requests. It compares the behavior of Chrome, Firefox, and Safari.

### Source excerpt

Learn how the Cache-Control request header works, how browsers handle refresh and hard refresh caching, and when developers should use it themselves.

## Caching: Performance Benefits, Invalidation, and Consistency

DevFeed: [Caching: Performance Benefits, Invalidation, and Consistency](<https://devfeed.tech/articles/the-ultimate-caching-definition-invalidation-optimization-and-layers-81305.md>)

Original publisher: [Read original article](<https://stack.convex.dev/caching-in>)

Author: Stack

Published: 2024-05-14T19:00:00Z

Content type: article

Language: en

Sources: [Stack](<https://devfeed.tech/sources/stack.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [consistency](<https://devfeed.tech/topics/consistency.md>), [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>)

Tags: [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [caching](<https://devfeed.tech/tags/caching.md>), [consistency](<https://devfeed.tech/tags/consistency.md>), [fundamentals](<https://devfeed.tech/tags/fundamentals.md>), [performance](<https://devfeed.tech/tags/performance.md>), [perspectives](<https://devfeed.tech/tags/perspectives.md>)

### AI overview

The article defines a cache as a non-authoritative representation of data maintained for performance. It explains how caching reduces storage access time, network delays, and repeated computation, then examines polling, push invalidation, thundering herds, layered caches, and inconsistent updates. It recommends establishing a performance need before adding caching and tracking data dependencies when managing invalidation.

### Source excerpt

A cache is a non-authoritative representation of data maintained for performance reasons. Find out what these words mean and when you should care about them here.

## Leaking secrets through caching with Bunny CDN

DevFeed: [Leaking secrets through caching with Bunny CDN](<https://devfeed.tech/articles/leaking-secrets-through-caching-with-bunny-cdn-19044.md>)

Original publisher: [Read original article](<https://httptoolkit.com/blog/bunny-cdn-caching-vulnerability/>)

Author: HTTP Toolkit; Tim Perry

Published: 2023-06-20T11:30:00Z

Content type: article

Language: en

Sources: [HTTP Toolkit](<https://devfeed.tech/sources/http-toolkit.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [cache-control](<https://devfeed.tech/topics/cache-control.md>), [frontend security](<https://devfeed.tech/topics/frontend-security.md>), [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [auth](<https://devfeed.tech/tags/auth.md>), [caching](<https://devfeed.tech/tags/caching.md>), [cdn](<https://devfeed.tech/tags/cdn.md>), [http](<https://devfeed.tech/tags/http.md>), [private](<https://devfeed.tech/tags/private.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

The author reports that Bunny.net's CDN once served private HTTP responses intended for one authenticated user to other users while they were testing deployment options; the issue is now fixed. The excerpt frames the incident against a broader tension: CDNs may cache more aggressively than HTTP standards anticipate to protect upstream services from traffic spikes and support performance, but this can create privacy and application risks. It notes that API authentication commonly uses an Authorization header, but the excerpt ends before explaining how that interacted with the cache or how the issue was resolved.

### Source excerpt

Caching is hard. Unfortunately though, caching is quite important. Hosted caching & CDNs offer incredible powers that can provide amazing performance boosts, cost savings & downtime protection, essential for most modern sites with any serious volume of users. Unfortunately, while there are strict standards for how caching is supposed to work with HTTP on the web, many cache providers do not quite follow these, instead giving their customers free reign over all kinds of invalid caching behaviour, and providing their own default configurations that often don't closely follow these standards to start with either. There are many good reasons for this, but the main one is that CDNs are now doing dual service: providing performance improvements, and actively protecting upstream sites from DoS attacks and traffic spikes (similar problems - the key difference between a DoS attack and hitting #1 on Hacker News etc is intent, not impact). This conflicts with many of the standards, which prioritize correctness and predictability over this use case and, for example, expect clients to be able to unilaterally request that the cache be ignored. Bunny.net provides one of these CDNs, and like most they aggressively cache content beyond the limits of the standards, both to help protect upstream servers and to support advanced user use cases. This has upsides, but in some edge cases can result in awkward bugs and break developer expectations. In some more dramatic cases though, it can expose private user data, break applications & even leak auth credentials, and that's where this story gets serious. A few months ago, I ran into exactly that issue while testing out deployment options with Bunny.net, where I discovered that private HTTP responses intended for one authenticated user could be served to other users instead. Spoiler: this is now fixed! That said, it's worth exploring where this went wrong, the many ways this can work right, and how CDNs solve issues like this in practice. C

[Next page](<https://devfeed.tech/topics/cache-control.md?cursor=WyIyMDIzLTA2LTIwVDExOjMwOjAwKzAwOjAwIiwgImI0NGQzOTQyLTI0NWMtNGE1ZS04OWQ2LTAwYzQzMTQ5ODZjZSJd>)