"Overwrite Gzip and Brotli compression" rules causes CONTENT_DECODING_FAILED, 404 errors in wasm files

WebViewer Version: 7.3.0
IIS version 8.5.9600.16384
Windows Server Version : 6.2 (Build 9200)

I am trying to adhere to webviewer’s requirement of setting Content-Encoding to gzip and br to wasm files. I have added a rewrite rule shown here https://www.pdftron.com/documentation/web/faq/content-encoding/

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?


Thanks in advance

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hello Adrian,

Just to confirm, did you put the downloaded web.config file under /lib/core?

Andy Huang

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.

Hello Adrian,

Can you please confirm that you have the IIS URL rewrite module installed?


Also, once you have placed the config file, it would be recommended to restart IIS just in case.

Andy Huang