I want to cache my images and found something like this
<cache enabled="true">
Current Time Inside Cache Tag Helper: @DateTime.Now
</cache>
https://learn.microsoft.com/en-us/aspnet/core/mvc/views/tag-helpers/built-in/cache-tag-helper?view=aspnetcore-3.1 How can I implement my image on this?
cachetag helper is for caching bits of HTML (presumably generated by Razor code where the compilation times would be higher than desired). It's not going to cause an actual image file to be cached client-side; that's not what it's for. For that, you need to setCache-Controlheaders on the image responses. If you're serving via the static files middleware, you can configure the cache headers with that middleware.