Today I learned CacheOutput middleware in ASP.NET Core 7.0 (.NET 7.0). I have researched many times but I can't find a default cache duration.
app.MapGet("/cached", () => DateTime.Now.ToString()).CacheOutput();
What is the default cache duration of CacheOutput() middleware ?
Thanks.
CodePudding user response:
From the docs "Configure multiple endpoints or pages" section:
If an expiration time isn't specified, it defaults to one minute.