ASP.NET Core & Web API (50 Qs)•Part 2: Entity Framework Core, Security & High-Performance Data (11 - 24)
What is Output Caching vs. Response Caching in ASP.NET Core?
junior LevelMost AskedFormsPerformanceSecurity & Auth
In Simple Words:
- Response Caching: Relies on HTTP cache headers (
Cache-Control) directed primarily at clients and intermediate CDN proxies. - Output Caching (.NET 7+): Server-side caching of endpoint response payloads with tag-based cache eviction (
EvictByTagAsync), cache locking (prevents cache stampede), and custom storage providers (Redis).