The solution for YAF to access static resources such as pictures and prohibit calling the YAF framework

When accessing a static resource in the yafpublic directory, the yaf application framework will still be accessed, and the errorAction of the default Controller will be called.
The obtained url path is http://xxx/favicon.ico

This is because the browser will access the favicon.ico resource by default, and if this resource does not exist, yaf will be executed.
Solution: put a favicon.ico image.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327084186&siteId=291194637