Has anyone else noticed this? Recently, when I create a new project in Visual Studio 2026, Program.cs has MapStaticAssets() in it. Yet, I have had problems when I'd run and debug the app locally. Recently, I had a project that was supposed to serve pdf files. Yet somehow it was serving them from a cache, and would continue to serve old versions of the files, even though the pdf files had changed on disk. Just now I started a different project, and MapStaticAssets() was literally cutting off the last 20 lines of an html file I was working on. In both cases, when I switched to UseStaticFiles(), the problems were resolved. Anyone else have issues with this? submitted by /u/CaptainIncredible [link] [comments]