Microsoft Azure의 웹 앱에서 HTTP 압축(gzip, deflate)을 활성화하려면 Web.config의 system.webServer에 아래 라인을 추가한다.
<urlCompression doDynamicCompression="true" doStaticCompression="true" />
그리고 특정 MIME 타입에 대해 압축을 설정하려면 아래와 같은 내용을 system.webServer에 추가한다.
<httpCompression>
<dynamicTypes>
<clear />
<add enabled="true" mimeType="text/*"/>
<add enabled="true" mimeType="message/*"/>
<add enabled="true" mimeType="application/x-javascript"/>
<add enabled="true" mimeType="application/javascript"/>
<add enabled="true" mimeType="application/json"/>
<add enabled="false" mimeType="*/*"/>
<add enabled="true" mimeType="application/atom+xml"/>
<add enabled="true" mimeType="application/atom+xml;charset=utf-8"/>
</dynamicTypes>
<staticTypes>
<clear />
<add enabled="true" mimeType="text/*"/>
<add enabled="true" mimeType="message/*"/>
<add enabled="true" mimeType="application/javascript"/>
<add enabled="true" mimeType="application/atom+xml"/>
<add enabled="true" mimeType="application/xaml+xml"/>
<add enabled="true" mimeType="application/json"/>
<add enabled="false" mimeType="*/*"/>
</staticTypes>
</httpCompression>
'개발' 카테고리의 다른 글
WTL Wizard 스크립트 오류 해결 (0) | 2015.07.07 |
---|---|
Microsoft Azure 404, 500 등 오류 페이지 문제 (1) | 2015.07.07 |
FlashDevelop 안드로이드 에뮬레이터에서 디버깅하기 (0) | 2014.11.07 |
VS Node.js 프로젝트 Azure에 배포하기 (0) | 2014.10.22 |
Microsoft Azure의 Linux에 MongoDB 설치하기 (2) | 2014.10.18 |
댓글