Reverse proxy iis url rewrite ERR_CONTENT_LENGTH_MISMATCH issue RRS feed

  • Question

  • User106386122 posted

    I created one URL rewrite rule in web config, seems to be working partially. It is not downloading one file completely, gives error in console ERR_CONTENT_LENGTH_MISMATCH with that file's location.

    Is there any way I can fix this issue? Please suggest.

    Thank you.

    Friday, April 13, 2018 4:17 AM

All replies

  • User283571144 posted

    Hi kshitij,

    According to your description, I couldn't directly find the reason why show this error.

    Could you please post the details error message and the rewrite rule?

    Besides, I suggest you could post more details about the download file.

    If you could post more details information, it will be more easily for us to find the reason.

    Best Regards,


    Monday, April 16, 2018 3:04 AM
  • User106386122 posted

    Error is ->  Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH

    Rewrite rule:

    <rule name="ProxyToGo2" stopProcessing="true">
      <match url="olo1/?(.*)" />
      <action type="Rewrite" url="https://someurl.com/{R:1}" />
        <set name="HTTP_X_ORIGINAL_HOST" value="{HTTP_HOST}/olo1" />
        <set name="HTTP_ACCEPT_ENCODING" value="" />
       <rule name="AbsoluteToGo2" patternSyntax="ExactMatch">
          <match filterByTags="None" pattern="https://someurl.com" />
          <action type="Rewrite" value="https://{HTTP_X_ORIGINAL_HOST}" />

    The above rewrite rule is written in the web.config of https://mydomain.com

    So, when I try to navigate to https://mydomain.com/olo1/web/583

    It just shows few things of the page with the error "Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH" in the console.

    Wednesday, April 18, 2018 12:07 PM
  • User106386122 posted

    Hello Brando,

    Can you help me with this issue? I am still not able to figure it out the reason for this issue.

    Friday, April 27, 2018 3:44 AM