ASP.NET Core MVC is forcing no-cache if there is a form tag on the razor page

41 Views Asked by At

I am a bit stuck with this. Troubleshooting some browser page cache issues and starting with a bare bones ASP.NET Core 7 MVC site. No matter what ResponseCache settings I have some middleware is forcing caching to no-cache if there is a <form> tag on the Razor page. Remove the tag and it works.

I cannot find any docs on this and this is not the behaviour I want or need.

Has anyone else seen this?

0

There are 0 best solutions below