2

IIS 6 を EPiserver CMS で使用しています。これは、すべての要求が aspnet_isapi.dll を通過する必要があります。

すべての静的ファイル (主に js、css) を gzip したい。IIS で圧縮を設定しようとしてもうまくいきませんでした。

これを実現できる EPiServer の設定はありますか? .net フレームワークはファイルを自動的に圧縮できますか?

4

2 に答える 2

2

You'll need to configure the html extension in the IIS metabase as a dynamically compressed extension. You are probably treating it as a static page. If the .js and .css extensions are mapped to aspnet_isapi they are considered as dynamic pages.

The setting in metabase.xml should look like this:

HcScriptFileExtensions="asp
dll 
exe 
js
css"

Don't forget to remove the extensions from HcFileExtensions (for static files) if you inserted them there before.

Hope this helps.

于 2008-11-13T18:25:40.093 に答える