Skip to content

FAQ

Frequent questions about caches: how they differ from buffers, when to invalidate, and why "clear your cache" is almost always correct.

Cache vs buffer?

A cache stores values for reuse; a buffer smooths throughput between producer and consumer. They are different structures with different purposes.

When should I invalidate?

The instant the source changes, or at the TTL if the cost of staleness is low. Choose based on how bad stale data is.

Why does "clear your cache" work?

Because most UI inconsistencies are stale HTML, CSS or JS held by the browser cache. Clearing forces a fresh fetch.

Can caching be a bug?

Yes. Serving a cached response past its invalidation is a bug, not a feature.