But when I try to access a pdf in the viewer, I see a CONTENT_DECODING_FAILED error and some 404 errors. When I remove the rules, everything works OK, so my question is what am I doing wrong here?
Yes, initially I tried putting this web.config file inside the lib\core directory but it resulted in the same error. If I delete the web.config file inside lib\core folder, the error goes away.