GZipping content files in ASP.NET MVC 3

前端 未结 1 1312
遇见更好的自我
遇见更好的自我 2021-01-06 07:26

I use the following attribute to decorate my BaseController class.

public class OutputCompressAttribute : ActionFilterAttribute
{
    public ove         


        
1条回答
  •  旧巷少年郎
    2021-01-06 07:52

    Instead of writing such action filters and reinventing the wheels you could activate compression in IIS. You could do this for static and dynamic content.

    0 讨论(0)
提交回复
热议问题