I run into some problems enhancing the default rule for progress page taken from the ruleset library. In fact I would like to be able to have a condition which checks for the MIME type, that is, to be able to make excludes for specific MIME types. This is my rule:
This rule does NOT work. But it used to work in the past, I have no idea why it behaves different now. Maybe some changes somewhere in the ruleset affects also that rule. What happened is that ... nothing happens, that means, the progress page does not appear as expected for any downloads auch as application/zip. Once I remove the condition regarding the MediaType.EnsuredTypes the rule looks as following:
This rule works as expected. What is also working is the upper rule if it also applies to requests and not just to responses. However, this took me into other problems on which the progress page has been displayed also for a large html file even this should not be done. I also checked for other options that MediaType.EnsuredTypes like MediaType.FromHeader, same effect.