I use the following attribute to decorate my BaseController class.
BaseController
public class OutputCompressAttribute : ActionFilterAttribute { public ove
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.