:私は角CLIで角度SPAを作成しましたAzureのWebAppの単純なHTML/JSのGZIP
。これは私が紺碧に展開した.html/.jsファイルを与えます。 今、私はazureがgzipでエンコードされたこれらのファイルを提供します。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpCompression
directory="%SystemDrive%\inetpub\temp\IIS Temporary Compressed Files">
<scheme name="gzip" dll="%Windir%\system32\inetsrv\gzip.dll" />
</httpCompression>
<urlCompression doStaticCompression="true" doDynamicCompression="false" />
</system.webServer>
</configuration>
しかし、これはgzip圧縮された任意のファイルを提供しません:私は、web.configファイルを作成したことを行うために 。私もこの設定でそれを試してみた
:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<urlCompression doStaticCompression="true" doDynamicCompression="false" />
<httpCompression>
<staticTypes>
<clear />
<remove mimeType="*/*" />
<add enabled="true" mimeType="text/*"/>
<add enabled="true" mimeType="message/*"/>
<add enabled="true" mimeType="application/javascript"/>
<add enabled="true" mimeType="application/x-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>
</configuration>
同じ結果に...
は、私はgzip圧縮されたこれらの静的ファイルを提供する紺碧得ることができる方法誰もが知っていますか?
参照:https://stackoverflow.com/questions/34006236/azure-web-app-not-using-gzip-compression –
ええ、私はすでにそのスレッドを読んでいます。私にも解決策はありません... – Domenic