github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/mod/mod_cache.html.ja.utf8 (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     3  <html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head>
     4  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
     5  <!--
     6          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     7                This file is generated from xml source: DO NOT EDIT
     8          XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
     9        -->
    10  <title>mod_cache - Apache HTTP サーバ バージョン 2.2</title>
    11  <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
    12  <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
    13  <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" />
    14  <script src="../style/scripts/prettify.min.js" type="text/javascript">
    15  </script>
    16  
    17  <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/mod/mod_cache.html" rel="canonical" /></head>
    18  <body>
    19  <div id="page-header">
    20  <p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p>
    21  <p class="apache">Apache HTTP サーバ バージョン 2.2</p>
    22  <img alt="" src="../images/feather.gif" /></div>
    23  <div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="../images/left.gif" /></a></div>
    24  <div id="path">
    25  <a href="http://www.apache.org/">Apache</a> &gt; <a href="http://httpd.apache.org/">HTTP サーバ</a> &gt; <a href="http://httpd.apache.org/docs/">ドキュメンテーション</a> &gt; <a href="../">バージョン 2.2</a> &gt; <a href="./">モジュール</a></div>
    26  <div id="page-content">
    27  <div class="retired"><h4>Please note</h4>
    28              <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p>
    29          <p>You may follow <a href="http://httpd.apache.org/docs/current/mod/mod_cache.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache モジュール mod_cache</h1>
    30  <div class="toplang">
    31  <p><span>翻訳済み言語: </span><a href="../en/mod/mod_cache.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
    32  <a href="../ja/mod/mod_cache.html" title="Japanese">&nbsp;ja&nbsp;</a> |
    33  <a href="../ko/mod/mod_cache.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
    34  </div>
    35  <div class="outofdate">この日本語訳はすでに古くなっている
    36              可能性があります。
    37              最近更新された内容を見るには英語版をご覧下さい。
    38          </div>
    39  <table class="module"><tr><th><a href="module-dict.html#Description">説明:</a></th><td>URI をキーにしたコンテンツのキャッシュ</td></tr>
    40  <tr><th><a href="module-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
    41  <tr><th><a href="module-dict.html#ModuleIdentifier">モジュール識別子:</a></th><td>cache_module</td></tr>
    42  <tr><th><a href="module-dict.html#SourceFile">ソースファイル:</a></th><td>mod_cache.c</td></tr></table>
    43  <h3>概要</h3>
    44  
    45      <div class="warning">使用方法については注意する必要があり、
    46      <code class="directive"><a href="../mod/mod_authz_host.html#allow">Allow</a></code> や
    47      <code class="directive"><a href="../mod/mod_authz_host.html#deny">Deny</a></code> 
    48      ディレクティブを迂回する設定もできてしまいます。
    49      ホスト名やアドレスや環境変数に基づいてクライアントからの
    50      アクセスを制限したい場合は、キャッシュ機能を有効にすべきでは
    51      ありません。</div>
    52  
    53      <p><code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> はローカルのコンテンツやプロキシされた
    54      コンテンツをキャッシュするために使われる <a href="http://www.ietf.org/rfc/rfc2616.txt">RFC 2616</a> 準拠の
    55      HTTP コンテンツキャッシュを実装しています。<code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code>
    56      の動作にはストレージを管理するモジュールが必要です。標準
    57      Apache 配布には二つストレージ管理モジュールが含まれています:</p>
    58      
    59      <dl>
    60      <dt><code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code></dt>
    61      <dd>ディスクを使用したストレージ管理機構を実装しています。</dd>
    62  
    63      <dt><code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code></dt>
    64      <dd>メモリを使用したストレージ管理機構を実装しています。
    65      <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code> は次の二つのモードのどちらかで動作する
    66      ように設定できます: オープンされているファイル記述子をキャッシュするモードか、
    67      ヒープ上でのオブジェクトの自体をキャッシュをするモードです。
    68      <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code> はローカルで生成されるコンテンツや、
    69      <code class="module"><a href="../mod/mod_proxy.html">mod_proxy</a></code> が
    70      <code class="directive"><a href="../mod/mod_proxy.html#proxypass">ProxyPass</a></code> を使って設定されている
    71      ときの (つまり<dfn>リバースプロキシ</dfn> での) バックエンドサーバの
    72      コンテンツをキャッシュするのに使えます。</dd>
    73      </dl>
    74  
    75      <p>コンテンツのキャッシュへの保存と取得は URI に基づいたキーが使われます。
    76      アクセス保護のかけられているコンテンツはキャッシュされません。</p>
    77      <p>詳細や解説、例については
    78      <a href="../caching.html">Caching Guide</a> を参照して下さい。</p>
    79  </div>
    80  <div id="quickview"><h3>トピック</h3>
    81  <ul id="topics">
    82  <li><img alt="" src="../images/down.gif" /> <a href="#related">関連モジュールとディレクティブ</a></li>
    83  <li><img alt="" src="../images/down.gif" /> <a href="#sampleconf">サンプル設定</a></li>
    84  </ul><h3 class="directives">ディレクティブ</h3>
    85  <ul id="toc">
    86  <li><img alt="" src="../images/down.gif" /> <a href="#cachedefaultexpire">CacheDefaultExpire</a></li>
    87  <li><img alt="" src="../images/down.gif" /> <a href="#cachedisable">CacheDisable</a></li>
    88  <li><img alt="" src="../images/down.gif" /> <a href="#cacheenable">CacheEnable</a></li>
    89  <li><img alt="" src="../images/down.gif" /> <a href="#cacheignorecachecontrol">CacheIgnoreCacheControl</a></li>
    90  <li><img alt="" src="../images/down.gif" /> <a href="#cacheignoreheaders">CacheIgnoreHeaders</a></li>
    91  <li><img alt="" src="../images/down.gif" /> <a href="#cacheignorenolastmod">CacheIgnoreNoLastMod</a></li>
    92  <li><img alt="" src="../images/down.gif" /> <a href="#cacheignorequerystring">CacheIgnoreQueryString</a></li>
    93  <li><img alt="" src="../images/down.gif" /> <a href="#cacheignoreurlsessionidentifiers">CacheIgnoreURLSessionIdentifiers</a></li>
    94  <li><img alt="" src="../images/down.gif" /> <a href="#cachelastmodifiedfactor">CacheLastModifiedFactor</a></li>
    95  <li><img alt="" src="../images/down.gif" /> <a href="#cachelock">CacheLock</a></li>
    96  <li><img alt="" src="../images/down.gif" /> <a href="#cachelockmaxage">CacheLockMaxAge</a></li>
    97  <li><img alt="" src="../images/down.gif" /> <a href="#cachelockpath">CacheLockPath</a></li>
    98  <li><img alt="" src="../images/down.gif" /> <a href="#cachemaxexpire">CacheMaxExpire</a></li>
    99  <li><img alt="" src="../images/down.gif" /> <a href="#cachestorenostore">CacheStoreNoStore</a></li>
   100  <li><img alt="" src="../images/down.gif" /> <a href="#cachestoreprivate">CacheStorePrivate</a></li>
   101  </ul>
   102  <h3>参照</h3>
   103  <ul class="seealso">
   104  <li><a href="../caching.html">Caching Guide</a></li>
   105  </ul><ul class="seealso"><li><a href="#comments_section">コメント</a></li></ul></div>
   106  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   107  <div class="section">
   108  <h2><a name="related" id="related">関連モジュールとディレクティブ</a></h2>
   109      <table class="related"><tr><th>関連モジュール</th><th>関連ディレクティブ</th></tr><tr><td><ul><li><code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code></li><li><code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code></li></ul></td><td><ul><li><code class="directive"><a href="../mod/mod_disk_cache.html#cacheroot">CacheRoot</a></code></li><li><code class="directive"><a href="../mod/mod_disk_cache.html#cachedirlevels">CacheDirLevels</a></code></li><li><code class="directive"><a href="../mod/mod_disk_cache.html#cachedirlength">CacheDirLength</a></code></li><li><code class="directive"><a href="../mod/mod_disk_cache.html#cacheminfilesize">CacheMinFileSize</a></code></li><li><code class="directive"><a href="../mod/mod_disk_cache.html#cachemaxfilesize">CacheMaxFileSize</a></code></li><li><code class="directive"><a href="../mod/mod_mem_cache.html#mcachesize">MCacheSize</a></code></li><li><code class="directive"><a href="../mod/mod_mem_cache.html#mcachemaxobjectcount">MCacheMaxObjectCount</a></code></li><li><code class="directive"><a href="../mod/mod_mem_cache.html#mcacheminobjectsize">MCacheMinObjectSize</a></code></li><li><code class="directive"><a href="../mod/mod_mem_cache.html#mcachemaxobjectsize">MCacheMaxObjectSize</a></code></li><li><code class="directive"><a href="../mod/mod_mem_cache.html#mcacheremovalalgorithm">MCacheRemovalAlgorithm</a></code></li><li><code class="directive"><a href="../mod/mod_mem_cache.html#mcachemaxstreamingbuffer">MCacheMaxStreamingBuffer</a></code></li></ul></td></tr></table>
   110  </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   111  <div class="section">
   112  <h2><a name="sampleconf" id="sampleconf">サンプル設定</a></h2>
   113      <div class="example"><h3>Sample httpd.conf</h3><p><code>
   114        #<br />
   115        # Sample Cache Configuration<br />
   116        #<br />
   117        LoadModule cache_module modules/mod_cache.so<br />
   118        <br />
   119        &lt;IfModule mod_cache.c&gt;<br />
   120        <span class="indent">
   121          #LoadModule disk_cache_module modules/mod_disk_cache.so<br />
   122          # If you want to use mod_disk_cache instead of mod_mem_cache,<br />
   123          # uncomment the line above and comment out the LoadModule line below.<br />
   124          &lt;IfModule mod_disk_cache.c&gt;<br />
   125          <span class="indent">
   126            CacheRoot c:/cacheroot<br />
   127            CacheEnable disk  /<br />
   128            CacheDirLevels 5<br />
   129            CacheDirLength 3<br />
   130          </span>
   131          &lt;/IfModule&gt; <br />
   132          <br />
   133          LoadModule mem_cache_module modules/mod_mem_cache.so<br />
   134          &lt;IfModule mod_mem_cache.c&gt;<br />
   135          <span class="indent">
   136            CacheEnable mem  /<br />
   137            MCacheSize 4096<br />
   138            MCacheMaxObjectCount 100<br />
   139            MCacheMinObjectSize 1<br />
   140            MCacheMaxObjectSize 2048<br />
   141          </span>
   142          &lt;/IfModule&gt;<br />
   143          <br />
   144          # When acting as a proxy, don't cache the list of security updates<br />
   145          CacheDisable http://security.update.server/update-list/<br />
   146        </span>
   147        &lt;/IfModule&gt;
   148      </code></p></div>
   149  </div>
   150  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   151  <div class="directive-section"><h2><a name="CacheDefaultExpire" id="CacheDefaultExpire">CacheDefaultExpire</a> <a name="cachedefaultexpire" id="cachedefaultexpire">ディレクティブ</a></h2>
   152  <table class="directive">
   153  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>期日が指定されていないときにドキュメントをキャッシュするデフォルトの期間</td></tr>
   154  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheDefaultExpire <var>seconds</var></code></td></tr>
   155  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheDefaultExpire 3600 (1時間)</code></td></tr>
   156  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   157  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   158  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   159  </table>
   160      <p><code class="directive">CacheDefaultExpire</code> ディレクティブは、ドキュメントに
   161      有効期限 (expiry) や最終修正時刻 (last-modified) が指定されていない場合の
   162      デフォルトの時間を指定します。<code class="directive">CacheMaxExpire</code> 
   163      ディレクティブで指定された値はこの設定を上書き<em>しません</em>。</p>
   164  
   165      <div class="example"><p><code>
   166        CacheDefaultExpire 86400
   167      </code></p></div>
   168  
   169  </div>
   170  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   171  <div class="directive-section"><h2><a name="CacheDisable" id="CacheDisable">CacheDisable</a> <a name="cachedisable" id="cachedisable">ディレクティブ</a></h2>
   172  <table class="directive">
   173  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>特定の URL をキャッシュしない</td></tr>
   174  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheDisable <var> url-string</var></code></td></tr>
   175  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   176  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   177  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   178  </table>
   179      <p><code class="directive">CacheDisable</code> ディレクティブで
   180      <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> モジュールが <var>url-string</var> 以下の
   181      URL をキャッシュ<em>しない</em>ようにします。</p>
   182  
   183      <div class="example"><h3>例</h3><p><code>
   184        CacheDisable /local_files
   185      </code></p></div>
   186  
   187  </div>
   188  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   189  <div class="directive-section"><h2><a name="CacheEnable" id="CacheEnable">CacheEnable</a> <a name="cacheenable" id="cacheenable">ディレクティブ</a></h2>
   190  <table class="directive">
   191  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>指定したストレージ管理方式を使ってのキャッシュを有効にする</td></tr>
   192  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheEnable <var>cache_type</var> <var>url-string</var></code></td></tr>
   193  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   194  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   195  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   196  </table>
   197      <p><code class="directive">CacheEnable</code> ディレクティブで <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> 
   198      モジュールが <var>url-string</var> 以下の URL をキャッシュするようにします。
   199      キャッシュストレージ管理方式は <var>cache_type</var> 引数で指定します。
   200      <var>cache_type</var> <code> mem</code> で、
   201      <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code> で実装されているメモリを使ったストレージ
   202      管理方式を使うように <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> に指示します。
   203      <var>cache_type</var> <code>disk</code> で、
   204      <code class="module"><a href="../mod/mod_disk_cache.html">mod_disk_cache</a></code> で実装されているディスクを使ったストレージ
   205      管理を使うように <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> に指示します。
   206      <var>cache_type</var> <code>fd</code> は <code class="module"><a href="../mod/mod_cache.html">mod_cache</a></code> に
   207      <code class="module"><a href="../mod/mod_mem_cache.html">mod_mem_cache</a></code> により実装されているファイル記述子の
   208      キャッシュを使うように指示します。</p>
   209  
   210      <p>(下の例のように) <code class="directive">CacheEnable</code> ディレクティブの
   211      URL 空間が重複しているときは、該当するストレージ方式を順に試して、
   212      実際にリクエストの処理ができると、その方式で処理します。
   213      ストレージ管理方式が実行される順番は設定ファイル中の
   214      <code class="directive">CacheEnable</code> の順番により決定されます。</p>
   215  
   216      <div class="example"><p><code>
   217        CacheEnable  mem   /manual<br />
   218        CacheEnable  fd    /images<br />
   219        CacheEnable  disk  /<br />
   220      </code></p></div>
   221  
   222      <p>フォワードプロクシサーバとして動作させる場合は、
   223      <var>url-string</var> でリモートサイトとプロクシするプロトコルを
   224      指定して、何に対してキャッシュを有効にするか指定することもできます。</p>
   225   
   226      <div class="example"><p><code>
   227        # Cache proxied url's<br />
   228        CacheEnable  disk  /<br /><br />
   229        # Cache FTP-proxied url's<br />
   230        CacheEnable  disk  ftp://<br /><br />
   231        # Cache content from www.apache.org<br />
   232        CacheEnable  disk  http://www.apache.org/<br />
   233      </code></p></div>
   234  
   235  
   236  </div>
   237  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   238  <div class="directive-section"><h2><a name="CacheIgnoreCacheControl" id="CacheIgnoreCacheControl">CacheIgnoreCacheControl</a> <a name="cacheignorecachecontrol" id="cacheignorecachecontrol">ディレクティブ</a></h2>
   239  <table class="directive">
   240  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>キャッシュされているコンテンツを返さないようにクライアントから
   241  リクエストされても無視する</td></tr>
   242  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheIgnoreCacheControl On|Off</code></td></tr>
   243  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreCacheControl Off</code></td></tr>
   244  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   245  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   246  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   247  </table>
   248      <p>Cache-Control: no-cache ヘッダや Pragma: no-store ヘッダのあるリクエストに
   249      対しては、通常キャッシュを使いません。<code class="directive">CacheIgnoreCacheControl</code> 
   250      ディレクティブを使うと、この動作を上書きできます。
   251      <code class="directive">CacheIgnoreCacheControl</code> On とすると、
   252      リクエストに no-cache という値があっても、キャッシュを使ってドキュメントを
   253      返すようになります。認証を必要とするドキュメントは<em>決して</em>
   254      キャッシュされません。</p>
   255  
   256      <div class="example"><p><code>
   257        CacheIgnoreCacheControl On
   258      </code></p></div>
   259  
   260      <div class="warning"><h3>警告</h3>
   261         このディレクティブを使うと、ドキュメント取得時にキャッシュを使わないように
   262         クライアントがリクエストしているにもかかわらず、キャッシュを
   263         使うようになります。その結果、
   264         古いコンテンツが送られ続けることになってしまうかもしれません。
   265      </div>
   266  
   267  <h3>参照</h3>
   268  <ul>
   269  <li><code class="directive"><a href="#cachestoreprivate">CacheStorePrivate</a></code></li>
   270  <li><code class="directive"><a href="#cachestorenostore">CacheStoreNoStore</a></code></li>
   271  </ul>
   272  </div>
   273  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   274  <div class="directive-section"><h2><a name="CacheIgnoreHeaders" id="CacheIgnoreHeaders">CacheIgnoreHeaders</a> <a name="cacheignoreheaders" id="cacheignoreheaders">ディレクティブ</a></h2>
   275  <table class="directive">
   276  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>指定された HTTP ヘッダをキャッシュに保存しない。
   277  </td></tr>
   278  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheIgnoreHeaders <var>header-string</var> [<var>header-string</var>] ...</code></td></tr>
   279  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreHeaders None</code></td></tr>
   280  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   281  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   282  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   283  </table>
   284      <p>RFC 2616 によると、hop-by-hop HTTP ヘッダはキャッシュには保管されません。
   285      以下のヘッダは hop-by-hop ヘッダに該当しますので、
   286      <code class="directive">CacheIgnoreHeaders</code>
   287      の設定に<em>関係なく</em>キャッシュには保管されません:</p>
   288      <ul>
   289        <li><code>Connection</code></li>
   290        <li><code>Keep-Alive</code></li>
   291        <li><code>Proxy-Authenticate</code></li>
   292        <li><code>Proxy-Authorization</code></li>
   293        <li><code>TE</code></li>
   294        <li><code>Trailers</code></li>
   295        <li><code>Transfer-Encoding</code></li>
   296        <li><code>Upgrade</code></li>
   297      </ul>
   298  
   299      <p><code class="directive">CacheIgnoreHeaders</code> で
   300      キャッシュに保管しない追加の HTTP ヘッダを指定します。
   301      例えば、クッキーをキャッシュに保管しないようにした方がよい場合も
   302      あるでしょう。</p>
   303  
   304      <p><code class="directive">CacheIgnoreHeaders</code> の引数は、
   305      キャッシュに保管しない HTTP ヘッダを空白区切りにしたリスト形式です。
   306      キャッシュに保管しないヘッダが hop-by-hop ヘッダだけの場合
   307      (RFC 2616 準拠の動作のとき) は、
   308      <code class="directive">CacheIgnoreHeaders</code> を <code>None</code>
   309      に設定できます。</p>
   310  
   311      <div class="example"><h3>例 1</h3><p><code>
   312        CacheIgnoreHeaders Set-Cookie
   313      </code></p></div>
   314  
   315      <div class="example"><h3>例 2</h3><p><code>
   316        CacheIgnoreHeaders None
   317      </code></p></div>
   318  
   319      <div class="warning"><h3>警告:</h3>
   320        <code>Expires</code> のような適切のキャッシュ管理のために必要な
   321        ヘッダが <code class="directive">CacheIgnoreHeaders</code> の設定により
   322        保管されていないときは、mod_cache の動作は定義されていません。
   323      </div>
   324  
   325  </div>
   326  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   327  <div class="directive-section"><h2><a name="CacheIgnoreNoLastMod" id="CacheIgnoreNoLastMod">CacheIgnoreNoLastMod</a> <a name="cacheignorenolastmod" id="cacheignorenolastmod">ディレクティブ</a></h2>
   328  <table class="directive">
   329  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>応答に Last Modified が無くても気にしないようにする</td></tr>
   330  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheIgnoreNoLastMod On|Off</code></td></tr>
   331  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreNoLastMod Off</code></td></tr>
   332  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   333  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   334  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   335  </table>
   336      <p>通常、Last-Modified による最終修正時刻の無いドキュメントはキャッシュ
   337      されません。(例えば <code class="module"><a href="../mod/mod_include.html">mod_include</a></code> による処理のときなどに)
   338      Last-Modified 時刻が消去されたり、そもそも最初から提供されていない
   339      状況があります。<code class="directive">CacheIgnoreNoLastMod</code> 
   340      ディレクティブを使うと、Last-Modified 日時が指定されていない
   341      ドキュメントでもキャッシュするように指定できます。ドキュメントに
   342      最終修正時刻 (Last-Modified) 有効期限 (expiry) がない場合は、有効期限の
   343      生成に <code class="directive">CacheDefaultExpire</code> が使われます。</p>
   344  
   345      <div class="example"><p><code>
   346        CacheIgnoreNoLastMod On
   347      </code></p></div>
   348  
   349  </div>
   350  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   351  <div class="directive-section"><h2><a name="CacheIgnoreQueryString" id="CacheIgnoreQueryString">CacheIgnoreQueryString</a> <a name="cacheignorequerystring" id="cacheignorequerystring">ディレクティブ</a></h2>
   352  <table class="directive">
   353  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Ignore query string when caching</td></tr>
   354  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheIgnoreQueryString On|Off</code></td></tr>
   355  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreQueryString Off</code></td></tr>
   356  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   357  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   358  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   359  <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Available in Apache 2.2.6 and later</td></tr>
   360  </table><p>このディレクティブの解説文書は
   361              まだ翻訳されていません。英語版をご覧ください。
   362              </p></div>
   363  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   364  <div class="directive-section"><h2><a name="CacheIgnoreURLSessionIdentifiers" id="CacheIgnoreURLSessionIdentifiers">CacheIgnoreURLSessionIdentifiers</a> <a name="cacheignoreurlsessionidentifiers" id="cacheignoreurlsessionidentifiers">ディレクティブ</a></h2>
   365  <table class="directive">
   366  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Ignore defined session identifiers encoded in the URL when caching
   367  </td></tr>
   368  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheIgnoreURLSessionIdentifiers <var>identifier</var> [<var>identifier</var>] ...</code></td></tr>
   369  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheIgnoreURLSessionIdentifiers None</code></td></tr>
   370  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   371  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   372  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   373  </table><p>このディレクティブの解説文書は
   374              まだ翻訳されていません。英語版をご覧ください。
   375              </p></div>
   376  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   377  <div class="directive-section"><h2><a name="CacheLastModifiedFactor" id="CacheLastModifiedFactor">CacheLastModifiedFactor</a> <a name="cachelastmodifiedfactor" id="cachelastmodifiedfactor">ディレクティブ</a></h2>
   378  <table class="directive">
   379  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>LastModified の日付に基づいて有効期限 (expiry) 
   380  を計算するための重みを指定する
   381  </td></tr>
   382  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheLastModifiedFactor <var>float</var></code></td></tr>
   383  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheLastModifiedFactor 0.1</code></td></tr>
   384  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   385  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   386  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   387  </table>
   388      <p>ドキュメントに Last-Modified の日付が無いけれども有効期限 (expiry) 
   389      の日付があるというときに、有効期限を最終修正時刻からの経過時間として
   390      計算するようにできます。有効期限を次の計算式に従って生成するのですが、
   391      そのときに使われる <var>factor</var> を
   392      <code class="directive">CacheLastModifiedFactor</code> ディレクティブで指定します。
   393      </p>
   394  
   395      <p><code>expiry-period = time-since-last-modified-date * <var>factor</var>
   396      expiry-date = current-date + expiry-period</code></p>
   397  
   398      <p>例えば、ドキュメントが 10 時間前に最後に修正されていて、
   399      <var>factor</var> が 0.1 であれば、期日は 10*0.1 = 1 時間に
   400      設定されます。現在時刻が 3:00pm であれば、計算された期日は
   401      3:00pm + 1hour = 4:00pm になります。</p>
   402  
   403      <p>期日が <code class="directive">CacheMaxExpire</code> で設定されている値
   404      より大きくなってしまっている場合は、<code class="directive">CacheMaxExpire</code>
   405      の設定値が優先されます。</p>
   406  
   407      <div class="example"><p><code>
   408        CacheLastModifiedFactor 0.5
   409      </code></p></div>
   410  
   411  </div>
   412  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   413  <div class="directive-section"><h2><a name="CacheLock" id="CacheLock">CacheLock</a> <a name="cachelock" id="cachelock">ディレクティブ</a></h2>
   414  <table class="directive">
   415  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Enable the thundering herd lock.</td></tr>
   416  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheLock <var>on|off</var></code></td></tr>
   417  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheLock off</code></td></tr>
   418  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   419  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   420  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   421  <tr><th><a href="directive-dict.html#Compatibility">互換性:</a></th><td>Available in Apache 2.2.15 and later</td></tr>
   422  </table><p>このディレクティブの解説文書は
   423              まだ翻訳されていません。英語版をご覧ください。
   424              </p></div>
   425  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   426  <div class="directive-section"><h2><a name="CacheLockMaxAge" id="CacheLockMaxAge">CacheLockMaxAge</a> <a name="cachelockmaxage" id="cachelockmaxage">ディレクティブ</a></h2>
   427  <table class="directive">
   428  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Set the maximum possible age of a cache lock.</td></tr>
   429  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheLockMaxAge <var>integer</var></code></td></tr>
   430  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheLockMaxAge 5</code></td></tr>
   431  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   432  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   433  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   434  </table><p>このディレクティブの解説文書は
   435              まだ翻訳されていません。英語版をご覧ください。
   436              </p></div>
   437  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   438  <div class="directive-section"><h2><a name="CacheLockPath" id="CacheLockPath">CacheLockPath</a> <a name="cachelockpath" id="cachelockpath">ディレクティブ</a></h2>
   439  <table class="directive">
   440  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>Set the lock path directory.</td></tr>
   441  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheLockPath <var>directory</var></code></td></tr>
   442  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheLockPath /tmp/mod_cache-lock</code></td></tr>
   443  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   444  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   445  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   446  </table><p>このディレクティブの解説文書は
   447              まだ翻訳されていません。英語版をご覧ください。
   448              </p></div>
   449  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   450  <div class="directive-section"><h2><a name="CacheMaxExpire" id="CacheMaxExpire">CacheMaxExpire</a> <a name="cachemaxexpire" id="cachemaxexpire">ディレクティブ</a></h2>
   451  <table class="directive">
   452  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>ドキュメントをキャッシュする最大時間を秒数で表したもの</td></tr>
   453  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheMaxExpire <var>seconds</var></code></td></tr>
   454  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheMaxExpire 86400 (一日)</code></td></tr>
   455  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   456  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   457  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   458  </table>
   459      <p><code class="directive">CacheMaxExpire</code> ディレクティブは、
   460      キャッシュする HTTP ドキュメントを、元のサーバに問い合わせないまま最大何秒
   461      保持してもよいかを指定します。つまり、ドキュメントは最大でこの秒数間ぶん古く
   462      なることになります。この最大値は、(訳注:レスポンス中で)ドキュメントと共に
   463      ドキュメントの期日が提供されている場合でも適用されます。</p>
   464  
   465      <div class="example"><p><code>
   466        CacheMaxExpire 604800
   467      </code></p></div>
   468  
   469  </div>
   470  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   471  <div class="directive-section"><h2><a name="CacheStoreNoStore" id="CacheStoreNoStore">CacheStoreNoStore</a> <a name="cachestorenostore" id="cachestorenostore">ディレクティブ</a></h2>
   472  <table class="directive">
   473  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>no-store と指定されているレスポンスのキャッシュを試みる。</td></tr>
   474  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheStoreNoStore On|Off</code></td></tr>
   475  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheStoreNoStore Off</code></td></tr>
   476  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   477  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   478  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   479  </table>
   480      <p>通常 Cache-Control: no-store ヘッダのついているレスポンスは
   481         キャッシュされません。<code class="directive">CacheStoreNoCache</code> 
   482         ディレクティブでこの挙動を上書きできます。
   483         <code class="directive">CacheStoreNoCache</code> On で no-store ヘッダのついている
   484         リソースに対してもキャッシュを試みるようになります。
   485         ただし認証の求められるリソースは <em>決して</em> キャッシュされません。</p>
   486  
   487      <div class="example"><p><code>
   488        CacheStoreNoStore On
   489      </code></p></div>
   490  
   491      <div class="warning"><h3>警告:</h3>
   492         RFC 2616 に記載されているように no-store ディレクティブは、
   493         "不注意による機密情報の漏洩や残留 (バックアップテープ等) を防ぐ"
   494         目的で使われますが、このオプションを有効にすると、
   495         機密情報を保持することになってしまいます。
   496         ですので、ここで警告しておきます。
   497      </div>
   498  
   499  <h3>参照</h3>
   500  <ul>
   501  <li><code class="directive"><a href="#cacheignorecachecontrol">CacheIgnoreCacheControl</a></code></li>
   502  <li><code class="directive"><a href="#cachestoreprivate">CacheStorePrivate</a></code></li>
   503  </ul>
   504  </div>
   505  <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
   506  <div class="directive-section"><h2><a name="CacheStorePrivate" id="CacheStorePrivate">CacheStorePrivate</a> <a name="cachestoreprivate" id="cachestoreprivate">ディレクティブ</a></h2>
   507  <table class="directive">
   508  <tr><th><a href="directive-dict.html#Description">説明:</a></th><td>private と指定されているレスポンスのキャッシュを試みる。</td></tr>
   509  <tr><th><a href="directive-dict.html#Syntax">構文:</a></th><td><code>CacheStorePrivate On|Off</code></td></tr>
   510  <tr><th><a href="directive-dict.html#Default">デフォルト:</a></th><td><code>CacheStorePrivate Off</code></td></tr>
   511  <tr><th><a href="directive-dict.html#Context">コンテキスト:</a></th><td>サーバ設定ファイル, バーチャルホスト</td></tr>
   512  <tr><th><a href="directive-dict.html#Status">ステータス:</a></th><td>Extension</td></tr>
   513  <tr><th><a href="directive-dict.html#Module">モジュール:</a></th><td>mod_cache</td></tr>
   514  </table>
   515      <p>通常 Cache-Control: private ヘッダのついているレスポンスは
   516         キャッシュされません。<code class="directive">CacheStorePrivate</code> 
   517         ディレクティブでこの挙動を上書きできます。
   518         <code class="directive">CacheStorePrivate</code> On で private ヘッダのついている
   519         リソースに対してもキャッシュを試みるようになります。
   520         ただし認証の求められるリソースは <em>決して</em> キャッシュされません。</p>
   521  
   522      <div class="example"><p><code>
   523        CacheStorePrivate On
   524      </code></p></div>
   525  
   526      <div class="warning"><h3>警告:</h3>
   527         上流サーバがキャッシュしないように指定してきても、
   528         それを無視してキャッシュするようになります。
   529         望ましい挙動になるのは、本当に 'private' なキャッシュについてのみでしょう。
   530      </div>
   531  
   532  <h3>参照</h3>
   533  <ul>
   534  <li><code class="directive"><a href="#cacheignorecachecontrol">CacheIgnoreCacheControl</a></code></li>
   535  <li><code class="directive"><a href="#cachestorenostore">CacheStoreNoStore</a></code></li>
   536  </ul>
   537  </div>
   538  </div>
   539  <div class="bottomlang">
   540  <p><span>翻訳済み言語: </span><a href="../en/mod/mod_cache.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
   541  <a href="../ja/mod/mod_cache.html" title="Japanese">&nbsp;ja&nbsp;</a> |
   542  <a href="../ko/mod/mod_cache.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
   543  </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">コメント</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>
   544  <script type="text/javascript"><!--//--><![CDATA[//><!--
   545  var comments_shortname = 'httpd';
   546  var comments_identifier = 'http://httpd.apache.org/docs/2.2/mod/mod_cache.html';
   547  (function(w, d) {
   548      if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
   549          d.write('<div id="comments_thread"><\/div>');
   550          var s = d.createElement('script');
   551          s.type = 'text/javascript';
   552          s.async = true;
   553          s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
   554          (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
   555      }
   556      else { 
   557          d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
   558      }
   559  })(window, document);
   560  //--><!]]></script></div><div id="footer">
   561  <p class="apache">Copyright 2017 The Apache Software Foundation.<br />この文書は <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> のライセンスで提供されています。.</p>
   562  <p class="menu"><a href="../mod/">モジュール</a> | <a href="../mod/directives.html">ディレクティブ</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">用語</a> | <a href="../sitemap.html">サイトマップ</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!--
   563  if (typeof(prettyPrint) !== 'undefined') {
   564      prettyPrint();
   565  }
   566  //--><!]]></script>
   567  </body></html>