(http://imageprocessor.org/imageprocessor-web/)
如果我使用提供的web.config
它会阻止 servicestack 工作,即使 ServiceStack 很好地放置在 location 下path="api"
我想我会使用另一种缓存方法,但仅供开发人员参考。如果我尝试按照下面path="images"
的完整位置将它放在web.config
下面,它根本什么都不做:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="api">
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add path="*" name="ServiceStack.Factory" type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
</handlers>
</system.webServer>
</location>
<location path="images">
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="ImageProcessorModule" type="ImageProcessor.Web.HttpModules.ImageProcessingModule, ImageProcessor.Web" />
</modules>
</system.webServer>
</location>
</configuration>