Output Caching in ASP.NET Core 7 | OD114



An inside look at the Output Caching feature that will ship in ASP.NET Core 7. Among other things we’ll cover how to configure endpoint caching, how to cache authenticated requests or to prevent cache stampede issues.

Additional Resource:
ASP.NET Core in .NET 7 Preview 1 – What you need to know — https://docs.microsoft.com/shows/on-net/aspnet-core-in-net-7-preview-1-what-you-need-to-know
ASP.NET documentation — https://docs.microsoft.com/aspnet/core/

Recommended Next Step:
Learn at Build — https://aka.ms/LearnatBuild/?wt.mc_id=build22_ondemand_webpage_esc

00:00 Introduction
00:10 Sebastien Ros, Principal Software Engineer, ASP.NET team
00:24 Output caching in .NET Core 7
00:29 Issues solved from using output caching in .NET Core 7
00:51 1) Driven my configuration
01:52 2) Extensible cache stores
02:50 3) Invalidate tagged cache entries
03:36 4) Cache Stampede and Thundering Herd mitigations with resource locking
05:25 5) Cache revalidation
03:53 Demo; Output Caching Middleware
08:52 Enable caching for every endpoint by default
09:33 Define as opt in or opt out
10:22 Customize a policy for an endpoint by calling into extension methods
13:34 Sharing profiles across endpoints
35:17 What’s next?
35:24 Byterange caching
35:56 Response substitution
36:21 More default storage options
36:42 Return stale results

Microsoft Build 2022