0

マスターページの上に次のディレクティブがあります

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

次の W3C の記事によると、ユーザー エージェントの文字列パターンごとに基づいて DTD のダウンロードをブロックし始めています。

DTD をローカルにキャッシュする最良の方法はどれですか?それとも、一度ダウンロードしてからローカル コピーを参照するのがよいでしょうか?

IIS 7.5 を使用しています。

4

2 に答える 2

2

「ローカル」が何を意味するかに応じて、squid のようなプロキシ サーバーを使用してローカルでサービスを提供できます。

于 2010-12-20T11:58:45.947 に答える
1

Install it in your local catalog of DTDs. How you do that depends on the software you are using. OpenSP, for example, uses the SGML_CATALOG_FILES environment variable.

You do not need to worry about this unless you are running some sort of XML parser over your documents. If you are just serving them up from a web server, then you won't be touching DTDs.

于 2010-12-20T12:02:35.997 に答える