This project has moved. For the latest updates, please go here.

Disable minification rather than throw an exception

I have a method which produces unexpected content type results. Would it be possible to simply disable minification when using MVC attributes rather than it throwing an Exception?

Id #23 | Release: None | Updated: Jul 9, 2016 at 11:08 AM by Taritsyn | Created: Jul 8, 2016 at 9:22 PM by dustyrah


Hello. Can you help to deal with error: I have an action: [HttpGet] [MinifyHtml] public ActionResult GetTariffExtendings(Guid tariffCode) { var model = ... get the model return PartialView("Parti...

Id #22 | Release: None | Updated: Apr 20, 2016 at 8:10 AM by Taritsyn | Created: Apr 18, 2016 at 12:12 PM by Modex

A Potentially dangerous Request.Form value with [ValidateInput(false)] and [CompressContent]

Hi! Can you help with that problem Have an Action: [HttpPost] [AllowAnonymous] [ValidateInput(false)] [ValidateAntiForgeryToken] [MinifyHtml, CompressContent] public ActionResult Register(Registe...

Id #21 | Release: None | Updated: Apr 11, 2016 at 11:40 AM by Modex | Created: Apr 8, 2016 at 7:51 AM by Modex

Implementation of minification for my whole project

Hello, I am implementing minification for my project. I have made changes as per documentation. Here is my updated web.config file: <configuration> <webMarkupMin xmlns="

Id #19 | Release: None | Updated: Sep 2, 2015 at 10:32 AM by Ankita_Patel | Created: Aug 24, 2015 at 6:57 AM by Ankita_Patel

How can I disable HTML minification for a particular URL?

I'm using Sitecore CMS on our website. I've noticed that HTML minifier brakes markup which is produced by Sitecore in the administration area. Is there any possibility to disable HTML minifier wh...

Id #18 | Release: None | Updated: Dec 23, 2015 at 12:11 PM by Taritsyn | Created: Apr 20, 2015 at 9:17 AM by alex_beregovoy

Cache-Control response header is being set to private when using HTML minifier

I have set up the cache control mode to UseMaxAge value. <staticContent> <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" /> </staticContent> But when I turn on the HT...

Id #17 | Release: None | Updated: Apr 20, 2015 at 10:52 AM by Taritsyn | Created: Apr 16, 2015 at 9:51 AM by alex_beregovoy

Minify AngularJS binding expressions causes exception with `ngRepeat`

If I have the MinifyAngularBindingExpressions property set to true, and I have the following markup to iterate over a 2-dimensional array or object: <div ng-repeat="item in itemArray[myIndex] track...

Id #16 | Release: None | Updated: Apr 1, 2015 at 5:13 PM by Taritsyn | Created: Apr 1, 2015 at 2:50 PM by Taritsyn

jQuery conditional loading causes "Remain not closed conditional comment." exception

When using the recommend jQuery CDN/Conditional loading the minifyier throws an exception. e.g. <!--[if lt IE 9]> <script src="//"></script>...

Id #13 | Release: None | Updated: Sep 30, 2014 at 3:08 PM by Jeavon | Created: Sep 30, 2014 at 11:50 AM by Jeavon

Remove response header?

Is there any way to remove the response header that WebMarkupMin puts in: X-HTML-Minification-Powered-By:WebMarkupMin ? Also are there anything else it puts in the response headers? thanks....

Id #10 | Release: None | Updated: Sep 11, 2014 at 2:47 PM by Ncage1974 | Created: Sep 10, 2014 at 5:25 PM by Ncage1974

Error when compressing Knockout.js template section

Found that WebMarkupMin doesn't compress knockout template in source code. All other markup compressed. Knockout.js template looks like: <script type="text/html" id="userTmpl"> <td data-bind="...

Id #9 | Release: None | Updated: Sep 14, 2014 at 4:43 PM by Taritsyn | Created: Jun 24, 2014 at 11:18 AM by Modex