mod_cache.html.ja.euc-jp

来自「apache服务器源代码(版本号:2.2.2)」· EUC-JP 代码 · 共 443 行 · 第 1/3 页

EUC-JP
443
字号
<tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr><tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Extension</td></tr><tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_cache</td></tr></table>    <p><code class="directive">CacheDisable</code> ディレクティブで    <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> モジュ〖ルが <var>url-string</var> 笆布の    URL をキャッシュ<em>しない</em>ようにします。</p>    <div class="example"><h3>毋</h3><p><code>      CacheDisable /local_files    </code></p></div></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="directive-section"><h2><a name="CacheEnable" id="CacheEnable">CacheEnable</a> <a name="cacheenable" id="cacheenable">ディレクティブ</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>回年したストレ〖ジ瓷妄数及を蝗ってのキャッシュを铜跟にする</td></tr><tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>CacheEnable <var>cache_type</var> <var>url-string</var></code></td></tr><tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr><tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Extension</td></tr><tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_cache</td></tr></table>    <p><code class="directive">CacheEnable</code> ディレクティブで <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code>     モジュ〖ルが <var>url-string</var> 笆布の URL をキャッシュするようにします。    キャッシュストレ〖ジ瓷妄数及は <var>cache_type</var> 苞眶で回年します。    <var>cache_type</var> <code> mem</code> で、    <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code> で悸刘されているメモリを蝗ったストレ〖ジ    瓷妄数及を蝗うように <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> に回绩します。    <var>cache_type</var> <code>disk</code> で、    <code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code> で悸刘されているディスクを蝗ったストレ〖ジ    瓷妄を蝗うように <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> に回绩します。    <var>cache_type</var> <code>fd</code> は <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> に    <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code> により悸刘されているファイル淡揭灰の    キャッシュを蝗うように回绩します。</p>    <p>(布の毋のように) <code class="directive">CacheEnable</code> ディレクティブの    URL 鄂粗が脚剩しているときは、澈碰するストレ〖ジ数及を界に活して、    悸狠にリクエストの借妄ができると、その数及で借妄します。    ストレ〖ジ瓷妄数及が悸乖される界戎は肋年ファイル面の    <code class="directive">CacheEnable</code> の界戎により疯年されます。</p>    <div class="example"><p><code>      CacheEnable  mem   /manual<br />      CacheEnable  fd    /images<br />      CacheEnable  disk  /<br />    </code></p></div></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="directive-section"><h2><a name="CacheIgnoreCacheControl" id="CacheIgnoreCacheControl">CacheIgnoreCacheControl</a> <a name="cacheignorecachecontrol" id="cacheignorecachecontrol">ディレクティブ</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>キャッシュされているコンテンツを手さないようにクライアントからリクエストされても痰浑する</td></tr><tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>CacheIgnoreCacheControl On|Off</code></td></tr><tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreCacheControl Off</code></td></tr><tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr><tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Extension</td></tr><tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_cache</td></tr></table>    <p>Cache-Control: no-cache ヘッダや Pragma: no-store ヘッダのあるリクエストに    滦しては、奶撅キャッシュを蝗いません。<code class="directive">CacheIgnoreCacheControl</code>     ディレクティブを蝗うと、この瓢侯を惧今きできます。    <code class="directive">CacheIgnoreCacheControl</code> On とすると、    リクエストに no-cache という猛があっても、キャッシュを蝗ってドキュメントを    手すようになります。千沮を涩妥とするドキュメントは<em>疯して</em>    キャッシュされません。</p>    <div class="example"><p><code>      CacheIgnoreCacheControl On    </code></p></div>    <div class="warning"><h3>焚桂</h3>       このディレクティブを蝗うと、ドキュメント艰评箕にキャッシュを蝗わないように       クライアントがリクエストしているにもかかわらず、キャッシュを       蝗うようになります。その冯蔡、       概いコンテンツが流られ鲁けることになってしまうかもしれません。    </div><h3>徊救</h3><ul><li><code class="directive"><a href="#cachestoreprivate">CacheStorePrivate</a></code></li><li><code class="directive"><a href="#cachestorenostore">CacheStoreNoStore</a></code></li></ul></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="directive-section"><h2><a name="CacheIgnoreHeaders" id="CacheIgnoreHeaders">CacheIgnoreHeaders</a> <a name="cacheignoreheaders" id="cacheignoreheaders">ディレクティブ</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>回年された HTTP ヘッダをキャッシュに瘦赂しない。</td></tr><tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>CacheIgnoreHeaders <var>header-string</var> [<var>header-string</var>] ...</code></td></tr><tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreHeaders None</code></td></tr><tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr><tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Extension</td></tr><tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_cache</td></tr></table>    <p>RFC 2616 によると、hop-by-hop HTTP ヘッダはキャッシュには瘦瓷されません。    笆布のヘッダは hop-by-hop ヘッダに澈碰しますので、    <code class="directive">CacheIgnoreHeaders</code>    の肋年に<em>簇犯なく</em>キャッシュには瘦瓷されません:</p>    <ul>      <li><code>Connection</code></li>      <li><code>Keep-Alive</code></li>      <li><code>Proxy-Authenticate</code></li>      <li><code>Proxy-Authorization</code></li>      <li><code>TE</code></li>      <li><code>Trailers</code></li>      <li><code>Transfer-Encoding</code></li>      <li><code>Upgrade</code></li>    </ul>    <p><code class="directive">CacheIgnoreHeaders</code> で    キャッシュに瘦瓷しない纳裁の HTTP ヘッダを回年します。    毋えば、クッキ〖をキャッシュに瘦瓷しないようにした数がよい眷圭も    あるでしょう。</p>    <p><code class="directive">CacheIgnoreHeaders</code> の苞眶は、    キャッシュに瘦瓷しない HTTP ヘッダを鄂球惰磊りにしたリスト妨及です。    キャッシュに瘦瓷しないヘッダが hop-by-hop ヘッダだけの眷圭    (RFC 2616 洁凋の瓢侯のとき) は、    <code class="directive">CacheIgnoreHeaders</code> を <code>None</code>    に肋年できます。</p>    <div class="example"><h3>毋 1</h3><p><code>      CacheIgnoreHeaders Set-Cookie    </code></p></div>    <div class="example"><h3>毋 2</h3><p><code>      CacheIgnoreHeaders None    </code></p></div>    <div class="warning"><h3>焚桂:</h3>      <code>Expires</code> のような努磊のキャッシュ瓷妄のために涩妥な      ヘッダが <code class="directive">CacheIgnoreHeaders</code> の肋年により      瘦瓷されていないときは、mod_cache の瓢侯は年盗されていません。    </div></div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div><div class="directive-section"><h2><a name="CacheIgnoreNoLastMod" id="CacheIgnoreNoLastMod">CacheIgnoreNoLastMod</a> <a name="cacheignorenolastmod" id="cacheignorenolastmod">ディレクティブ</a></h2><table class="directive"><tr><th><a href="directive-dict.html#Description">棱汤:</a></th><td>炳批に Last Modified が痰くても丹にしないようにする</td></tr><tr><th><a href="directive-dict.html#Syntax">菇矢:</a></th><td><code>CacheIgnoreNoLastMod On|Off</code></td></tr><tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreNoLastMod Off</code></td></tr><tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サ〖バ肋年ファイル, バ〖チャルホスト</td></tr><tr><th><a href="directive-dict.html#Status">ステ〖タス:</a></th><td>Extension</td></tr><tr><th><a href="directive-dict.html#Module">モジュ〖ル:</a></th><td>mod_cache</td></tr></table>    <p>奶撅、Last-Modified による呵姜饯赖箕癸の痰いドキュメントはキャッシュ

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?