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.
2 parents d37c5d2 + 18b8cbe commit 7cb7fe1Copy full SHA for 7cb7fe1
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