Thursday, 12 September 2013

How to use ASP.NET Response Filters on sites where dynamic compression is enabled

How to use ASP.NET Response Filters on sites where dynamic compression is
enabled

I've developed a simple ASP.NET response filter (with this as my base
filter class: http://mvolo.com/iis-70-response-modification-framework/)
that replaces some html with something else.
The things works great sometimes...but sometimes I get the following error:
====
This response filter does not support processing compressed responses.
Please disable static compression when using the filter, or use on the fly
dynamic compression to compress the response after the filter is finished
(do not use dynamicCompressionBeforeCache).
Do you have an explanation of why it happens just intermittently...and
especially how this can be solved? Thanks! :)

No comments:

Post a Comment