We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6af921d commit 18b8cbeCopy full SHA for 18b8cbe
projects/caching/caching-4/Program.cs
@@ -23,6 +23,8 @@
23
24
app.Run(async context =>
25
{
26
+ if (context.Request.Path == "/favicon.ico") return;//skip favicon request
27
+
28
var log = context.RequestServices.GetService<ILoggerFactory>().CreateLogger("app");
29
var cache = context.RequestServices.GetService<IMemoryCache>();
30
var greeting = cache.Get(CACHE_KEY) as string;
0 commit comments