How to prevent ASP.NET and Kentico from processing static files

孤人 提交于 2019-12-05 14:01:45

Integrated mode means that all requests will participate in the ASP.NET pipeline. I believe that ultimate handler for static resources would be static file handler from IIS but before serving those files, you will see ASP.NET modules and application events getting triggered for the same (including authentication).

Perhaps, you should elaborate the problem that you faced w.r.t ASP.NET & these files. Typically, you can turn off ASP.NET modules for particular path(s).
As you have these files in a sub-folder, another work-around could be to make the subfolder as different application and serve these files in a different app-pool in classic mode.

If the files are placed directly on the file system (and are not used within Media library in Kentico CMS) the Kentico CMS is not handling those files. Anyway, if you want to have better performance maybe you should consider adding them through the CMS interface - so they will be handled by the CMS engine and you can use the caching options available in Kentico CMS to improve the performance. Loading the files always, every time from the disk might not be always the fastest way how to retrieve them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!