How can I disable RequestReduce?
Clone this wiki locally
RequestReduce can be disabled in whole or in part for an individual request or accross the entire page. Here are your options:
Completely shut it down
To completely shut off RequestReduce, simply remove the RequestReduce module from your web.config or remove it from the IIS management GUI.
Completely turn it off temporarily via config
Suppress RequestReduce for a Single Request
Use the RequestReduce API to disable RequestReduce's filter based on your own custom rules
You can use the AddFilter method of the RequestReduce Registry to add a PageFilter that defines under what conditions RequestReduce should be suppressed.
Here is an example of how to disable RequestReduce for any Request under /admin/:
RequestReduce.Api.Registry.AddFilter(new PageFilter(x => x.HttpRequest.RawUrl.Contains("/admin/")));
The RequestReduce API passes the PageFilter the current HttpRequest and you can access any of its properties or use your own internal business logic to decide if RequestReduce should be suppressed. If you return true from this lambda, the request matching the criteria of the lambda will not have the RequestRedce filter applied.
See The RequestReduce API for details on its use.