I am running node server on local host and want to send chunk response and also want to control the data to be sent by iis, is there any configuration for that ?
Aslam Bavakhanavar
0
Reputation points
in web.config file i have tried this configuration, it is adding transfer encoding header but not able removing content length and not able to control data flow also.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{CACHE_URL}" pattern="^(https?)://" />
</conditions>
<action type="Rewrite" url="{C:1}://localhost:3000/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="Remove Content-Length Header" preCondition="IsStaticContent">
<match serverVariable="RESPONSE_Content_Length" pattern=".*" />
<action type="Rewrite" value="" />
</rule>
<rule name="Add Chunked Encoding">
<match serverVariable="RESPONSE_Transfer-Encoding" pattern=".*" />
<action type="Rewrite" value="chunked" />
</rule>
<customTags>
<tags name="Add Chunked Encoding" />
</customTags>
<preConditions>
<preCondition name="IsStaticContent">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/.*$" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>
<serverRuntime uploadReadAheadSize="10" />
<urlCompression doStaticCompression="false" doDynamicCompression="false" />
</system.webServer>
</configuration>
Sign in to answer