wwwdev.example.com에서 리버스 프록시 서버를 실행하고 dev.example.com에서 전체 사이트를 실행합니다. 내가 wwwdev.example.com에 가면역방향 프록시를 통해 액세스 할 때 JQuery 스크립트가 잘리는 경우
if (typeof define === "function" && define.amd && define.amd.jQuery) {
define("jquery", [], function() { return jQuery; });
}
})(window);
: 나는 dev.example.com/scripts/jquery-version.js로 이동하는 경우,이 같은 결말, 전체 jQuery를-version.js 파일을 반환받을 가 완료되기 전에 /scripts/jquery-version.js 파일이 차단 :
이if (typeof define === "function" && define.amd && define.amd.jQuery)
유일한 관련 인바운드 규칙은 다음과 같습니다
이<rule name="ReverseProxyInboundRule1" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^(.+?\.)?wwwdev\.example\.com" />
</conditions>
<serverVariables>
<set name="HTTP_ACCEPT_ENCODING" value="" />
<set name="HTTP_X_PROXY_REQUEST" value="" />
</serverVariables>
<action type="Rewrite" url="http://{C:1}dev.example.com/{R:1}" logRewrittenUrl="true" />
</rule>
유일한 관련 아웃 바운드 규칙은 다음과 같습니다
<rule name="Rewrite Links in JS" preCondition="IsJavascript" enabled="true">
<match filterByTags="None" pattern=""/(.+)"" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true" />
<action type="Rewrite" value=""http://wwwdev.example.com/{R:1}"" />
</rule>
<preConditions>
<preCondition name="IsJavascript">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^application/x-javascript" />
</preCondition>
</preConditions>
정적 압축이 켜져 있습니다. 동적 압축이 해제됩니다. 정적 압축을 해제하려고 시도했지만이 결과에 영향을 미치지 않는 것 같습니다.
피들러로 캡처 할 때 전체 파일이 반환되는 것을 볼 수 있지만 브라우저 (IE 또는 Chrome)를 통과하지는 못합니다. 관련성이 있다고 생각하는 Fiddler (Response Header indicated 266,885 bytes, but server sent 266,961 bytes
)를 통해보고 된 Content-Length 불일치가 발생하지만 문제의 원인을 정확히 알 수는 없습니다.
어떤 아이디어라도 대단히 감사 할 것입니다. , 응답 버퍼 임계 값 (KB)을 (응답 버퍼에 맞게 4096 (로 설정하는 KB를 필요로 서버 프록시 설정의 IIS 서버 노드의 응용 프로그램 요청 라우팅 캐시 기능에서
: