OutputCachingResponseCachingExamples contains an ASP.NET Core 8.0 minimal API that demonstrates examples of Output Caching and Response Caching.
For additional information regarding Output Caching and Response Caching, read Overview of caching in ASP.NET Core on Microsoft's website.