첫째, 당신은 그것을 처리하는 HttpHandler를을 만들어야합니다
namespace com.waynehartman.util.web.handlers
{
[WebService(Namespace = "http://waynehartman.com/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class HttpCompressor : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
// Code for compressing the file and writing it to the HttpResponse
}
public bool IsReusable
{
get { return true; }
}
}
}
그런 다음 당신은 당신의 Web.config의 처리기 매핑을 추가해야합니다
은 사용
<configuration>
<system.web>
<httpHandlers>
<add verb="*" path="*.css"
type="com.waynehartman.util.web.handlers.HttpCompressor, WayneHartmanUtilitiesLibrary"/>
<add verb="*" path="*.js"
type="com.waynehartman.util.web.handlers.HttpCompressor, WayneHartmanUtilitiesLibrary"/>
</httpHandlers>
</system.web>
</configuration>
IIS의 버전은 무엇된다 ? –