Compressing / minify html in C# MVC -


i have website set in umbraco v7, want minify html sent client. i've tried using webmarkupmin through registerglobalfilters, nothing happens.

my code

~/app_start/filterconfig.cs

public class filterconfig {     public static void registerglobalfilters(globalfiltercollection filters)     {         filters.add(new handleerrorattribute());         filters.add(new minifyhtmlattribute());     } } 

~/global.asax.cs

public class mvcapplication : system.web.httpapplication {     protected void application_start()     {         arearegistration.registerallareas();          webapiconfig.register(globalconfiguration.configuration);         filterconfig.registerglobalfilters(globalfilters.filters);         routeconfig.registerroutes(routetable.routes);     } } 

if please me. not know i'm missing. or if way have tried hopeless, open hear other ways of achieving this.

try solution based on httpmodule. (works mvc , webforms) example 1 simple: minify-html-for-asp-net


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -