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