The file content updates in the App_Plugins folder cannot be displayed immediately

Why can’t the updated content of html, js, and css in the App_Plugins folder be displayed immediately? It seems that there is a cache, and it takes a long time to show the latest modifications. Is there a cached temporary file generated somewhere?

I launched the program using Visual Studio IIS Express. Even after I restarted Visual Studio and IIS, Windows still couldn’t display the latest modifications.

It could be browser cache. Make sure you have the development toolbar of your browser open and the ‘disable cache’ option enabled. In debug mode, html, js and css files are not bundled, so there is no reason why they shouldn’t just update.

Also try a hard refresh of your browser.

This might also be of use..

Adding Cache-Control headers to Static Files in ASP.NET Core

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.