mod_expires.html.ja.euc-jp revision 6df89e6e4adeb986b41b7ec6b7593a887e031ce7
<?xml version="1.0" encoding="EUC-JP"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"><head><!--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This file is generated from xml source: DO NOT EDIT
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-->
<title>mod_expires - Apache HTTP ������</title>
<link href="/style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
<link href="/style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
<link href="/style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
<link href="/images/favicon.ico" rel="shortcut icon" /></head>
<body>
<div id="page-header">
<p class="menu"><a href="/mod/">�⥸�塼��</a> | <a href="/mod/directives.html">�ǥ��쥯�ƥ���</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">�Ѹ�</a> | <a href="/sitemap.html">�����ȥޥå�</a></p>
<p class="apache">Apache HTTP ������ ������� 2.3</p>
<img alt="" src="/images/feather.gif" /></div>
<div class="up"><a href="./"><img title="&lt;-" alt="&lt;-" src="/images/left.gif" /></a></div>
<div id="path">
<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-project/">�ɥ�����ơ������</a> &gt; <a href="../">�С������
2.3</a> &gt; <a href="./">�⥸�塼��</a></div>
<div id="page-content">
<div id="preamble"><h1>Apache �⥸�塼�� mod_expires</h1>
<div class="toplang">
<p><span>Available Languages: </span><a href="/en/mod/mod_expires.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="/ja/mod/mod_expires.html" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="/ko/mod/mod_expires.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
</div>
<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>�桼���λ��ꤷ�����˴�Ť��� <code>Expires</code> ��
<code>Cache-Control</code> HTTP �إå�������</td></tr>
<tr><th><a href="module-dict.html#Status">���ơ�����:</a></th><td>Extension</td></tr>
<tr><th><a href="module-dict.html#ModuleIdentifier">�⥸�塼�뼱�̻�:</a></th><td>expires_module</td></tr>
<tr><th><a href="module-dict.html#SourceFile">�������ե�����:</a></th><td>mod_expires.c</td></tr></table>
<h3>����</h3>
<p>���Υ⥸�塼��ϥ����б���� <code>Expires</code> HTTP �إå�
�� <code>Cache-Control</code> �إå��� <code>max-age</code> �ǥ��쥯�ƥ��֤�
��������椷�ޤ������Υե����뤬�������줿����ޤ���
���饤����ȤΥ�����������Τɤ��餫�˴�Ť��ƴ���ڤ����
���ꤹ�뤳�Ȥ��Ǥ��ޤ���</p>
<p>�����Υإå��ϥ��饤����Ȥ�ʸ���
ͭ�����ȷ�³����ؼ����ޤ���ʸ�񤬥���å��夵�줿���ˤϡ�
��������ã����ޤǤϡ����ξ�꤫��������������
����å��夵��Ƥ����Τ�Ȥ����Ȥ��Ǥ��ޤ������θ�ϡ�
����å���ˤ��륳�ԡ��ϴ���ڤ� (expired) ��̵��Ǥ���Ȥ��졢
���ξ�꤫�鿷������Τ��������ɬ�פ�����ޤ���</p>
<p><code>max-age</code> �ʳ� (<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">RFC
2616 section 14.9</a> ����) �� <code>Cache-Control</code> �Υǥ��쥯�ƥ��֤�
����ˤ� <code class="directive"><a href="/mod/mod_headers.html#header">Header</a></code> �ǥ��쥯�ƥ��֤�
�Ȥ����Ȥ��Ǥ��ޤ���</p></div>
<div id="quickview"><h3 class="directives">�ǥ��쥯�ƥ���</h3>
<ul id="toc">
<li><img alt="" src="/images/down.gif" /> <a href="#expiresactive">ExpiresActive</a></li>
<li><img alt="" src="/images/down.gif" /> <a href="#expiresbytype">ExpiresByType</a></li>
<li><img alt="" src="/images/down.gif" /> <a href="#expiresdefault">ExpiresDefault</a></li>
</ul>
<h3>�ȥԥå�</h3>
<ul id="topics">
<li><img alt="" src="/images/down.gif" /> <a href="#AltSyn">���ش�ֻ��깽ʸ</a></li>
</ul></div>
<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
<div class="section">
<h2><a name="AltSyn" id="AltSyn">���ش�ֻ��깽ʸ</a></h2>
<p><code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> �ǥ��쥯�ƥ��֤�
<code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> �ǥ��쥯�ƥ��֤�
�ʲ��Τ���ɤ߰פ���ʸ��Ȥä�������뤳�Ȥ��Ǥ��ޤ�:</p>
<div class="example"><p><code>
ExpiresDefault "&lt;base&gt; [plus] {&lt;num&gt;
&lt;type&gt;}*"<br />
ExpiresByType type/encoding "&lt;base&gt; [plus]
{&lt;num&gt; &lt;type&gt;}*"
</code></p></div>
<p>&lt;base&gt; �ϰʲ��Τɤ줫�Ǥ�:</p>
<ul>
<li><code>access</code></li>
<li><code>now</code> ('<code>access</code>' �����)</li>
<li><code>modification</code></li>
</ul>
<p><code>plus</code> ������ɤϾ�ά��ǽ�Ǥ���&lt;num&gt;
�� (<code>atoi()</code> �������դ���) �����͡�
&lt;type&gt; �ϰʲ��Τɤ줫�Ǥ�:</p>
<ul>
<li><code>years</code></li>
<li><code>months</code></li>
<li><code>weeks</code></li>
<li><code>days</code></li>
<li><code>hours</code></li>
<li><code>minutes</code></li>
<li><code>seconds</code></li>
</ul>
<p>�㤨�С��ʲ��Υǥ��쥯�ƥ��֤Ϥɤ��ǥե���Ȥ�ʸ�񤬥��������� 1 ������
��¤��ڤ��褦�ˤ��뤿��˻Ȥ��ޤ�:</p>
<div class="example"><p><code>
ExpiresDefault "access plus 1 month"<br />
ExpiresDefault "access plus 4 weeks"<br />
ExpiresDefault "access plus 30 days"
</code></p></div>
<p>����ڤ����Ϥ����Ĥ�
'&lt;num&gt; &lt;type&gt;' ����ɲä��뤳�ȤǤ��٤���
���椹�뤳�Ȥ��Ǥ��ޤ�:</p>
<div class="example"><p><code>
ExpiresByType text/html "access plus 1 month 15
days 2 hours"<br />
ExpiresByType image/gif "modification plus 5 hours 3
minutes"
</code></p></div>
<p>��������˴�Ť����������Ѥ��Ƥ����硢Expires �إå���
�ǥ������Υե�����ʳ��Υ���ƥ�Ĥˤ�<strong>�ɲä���ʤ�</strong>���Ȥ����
���Ƥ������������Τ褦�ʥ���ƥ�ĤˤϽ��������¸�ߤ��ʤ�����Ǥ���</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ExpiresActive" id="ExpiresActive">ExpiresActive</a> <a name="expiresactive" id="expiresactive">�ǥ��쥯�ƥ���</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td><code>Expires</code> �إå���������ͭ��ˤ���</td></tr>
<tr><th><a href="directive-dict.html#Syntax">��ʸ:</a></th><td><code>ExpiresActive On|Off</code></td></tr>
<tr><th><a href="directive-dict.html#Context">����ƥ�����:</a></th><td>����������ե�����, �С������ۥ���, �ǥ��쥯�ȥ�, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">���:</a></th><td>Indexes</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_expires</td></tr>
</table>
<p>���Υǥ��쥯�ƥ��֤��б�����ɥ�����Ȥ��ΰ��
<code>Expires</code> �� <code>Cache-Control</code>�إå���
ͭ��ˤ��뤫̵��ˤ��뤫����ޤ���
(�㤨�С�<code>.htaccess</code> �ե�����ǤϤ��Υǥ��쥯�ȥ��
ʸ��Τߤ�Ŭ�Ѥ����Ȥ������ȤǤ���) <code>Off</code> ��
���ꤵ�줿�����б��ΰ�Ǥ����Υإå���
��������ޤ��� (<code>.htaccess</code> ������������ե�����������
��񤭤��롢�Ȥ����褦�ʲ��̥�٥�Ǥξ�񤭤�����Ƥ��ʤ����)��
<code>On</code> �����ꤵ��Ƥ���С��إå��� <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> �ǥ��쥯�ƥ��֤�
<code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> �ǥ��쥯�ƥ���
�δ��˽��ä�ʸ��˥إå����ɲä��ޤ� (�ƥǥ��쥯�ƥ��ֻ���)��</p>
<p>���Υǥ��쥯�ƥ��֤� <code>Expires</code> ��
<code>Cache-Control</code> �إå���¸�ߤ�
�ݾڤ���櫓�ǤϤʤ����Ȥ���դ��Ƥ�����������ब���������
���ʤ����ϥإå����ɲä��줺����̤Ȥ��Ƥ��Υǥ��쥯�ƥ��֤�
���ꤵ��Ƥ��ʤ��ä����Τ褦�ˤ��������뤳�Ȥˤʤ�ޤ���</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ExpiresByType" id="ExpiresByType">ExpiresByType</a> <a name="expiresbytype" id="expiresbytype">�ǥ��쥯�ƥ���</a></h2>
<table class="directive">
<tr><th><a href="directive-dict.html#Description">����:</a></th><td>MIME �����פˤ�ä����ꤵ��� <code>Expires</code> �إå�����</td></tr>
<tr><th><a href="directive-dict.html#Syntax">��ʸ:</a></th><td><code>ExpiresByType <var>MIME-type</var>
<var>&lt;code&gt;seconds</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">����ƥ�����:</a></th><td>����������ե�����, �С������ۥ���, �ǥ��쥯�ȥ�, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">���:</a></th><td>Indexes</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_expires</td></tr>
</table>
<p>���Υǥ��쥯�ƥ��֤ϻ��ꤵ�줿�����פΥɥ������
(<em>�㤨��</em> <code>text/html</code>)
���Ф������������ <code>Expires</code> �إå��� <code>Cache-Control</code>
�إå��� <code>max-age</code> �ǥ��쥯�ƥ��֤��ͤ�������ޤ���
����ܤΰ���ϴ���ڤ��������������뤿��δ�������ɲä����
�ÿ������ꤷ�ޤ���<code>Cache-Control:
max-age</code> �ϴ���ڤ�λ��狼��ꥯ�����Ȼ�������Τ��ä�
ɽ�����Ȥ���������ޤ���</p>
<p>������ϥե�����κǽ��������狼�����饤����ȤΥɥ�����Ȥؤ�
������������Ǥ����ɤ����Ȥ��٤����� <code><var>&lt;code&gt;</var></code>
�ˤ�äƻ��ꤷ�ޤ���<code>M</code> �ϴ�����Ȥ���
�ե�����κǽ����������Ȥ�����̣�ǡ�<code>A</code> �ϥ��饤����Ȥ�
�������������Ȥ��Ȥ�����̣�ˤʤ�ޤ���</p>
<p>��̤ˤ���̯�ʰ㤤������ޤ���<code>M</code> �����Ѥ��줿���ϡ�
���٤ƤΥ���å���ˤ��븽�ߤΥɥ�����ȥ���å����Ʊ���˴�¤�
�ڤ�ޤ��������Ʊ�� URL ���轵����֤�����󤻤Τ褦�ʤ�Τˤ�
����ͭ��Ǥ���<code>A</code> �����Ѥ��줿���ϡ�����ڤ��
���֤ϳƥ��饤����Ȥ�äưۤʤ�ޤ�������Ϥ��ޤ��ѹ�����ʤ�
����ե�����ʤɡ��ä˴�Ϣ����ɥ�����ȷ������٤�Ʊ�������
���Ȥ���Ȥ� (<em>���ʤ��</em>�������Ūû�������˷����֤�
�������������Ȥ�) ��ͭ��Ǥ���</p>
<div class="example"><h3>��:</h3><p><code>
# enable expirations<br />
ExpiresActive On<br />
# expire GIF images after a month in the client's cache<br />
ExpiresByType image/gif A2592000<br />
# HTML documents are good for a week from the<br />
# time they were changed<br />
ExpiresByType text/html M604800
</code></p></div>
<p>���Υǥ��쥯�ƥ��֤� <code>ExpiresActive On</code> �����ꤵ��Ƥ���
�Ȥ��Τ�ͭ��Ǥ��뤳�Ȥ���դ��Ƥ�������������ϡ�
���ꤵ�줿 MIME �����פ��Ф���<em>�Τ�</em> <code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> �ǥ��쥯�ƥ��֤�
���ꤵ�줿����ڤ������񤭤��ޤ���</p>
<p>����ʸ������������������Ƥ���<a href="#AltSyn">���ع�ʸ</a>��
�Ȥäƴ���ڤ����η׻���ˡ����ꤹ�뤳�Ȥ�Ǥ��ޤ���</p>
</div>
<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div>
<div class="directive-section"><h2><a name="ExpiresDefault" id="ExpiresDefault">ExpiresDefault</a> <a name="expiresdefault" id="expiresdefault">�ǥ��쥯�ƥ���</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>ExpiresDefault <var>&lt;code&gt;seconds</var></code></td></tr>
<tr><th><a href="directive-dict.html#Context">����ƥ�����:</a></th><td>����������ե�����, �С������ۥ���, �ǥ��쥯�ȥ�, .htaccess</td></tr>
<tr><th><a href="directive-dict.html#Override">���:</a></th><td>Indexes</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_expires</td></tr>
</table>
<p>���Υǥ��쥯�ƥ��֤��б������ϰϤΤ��٤ƤΥɥ�����Ȥ��Ф���
�ǥե���Ȥδ���ڤ����η׻����르�ꥺ������ꤷ�ޤ���<code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> �ǥ��쥯�ƥ��֤ˤ�ä�
��������˾�񤭤��뤳�Ȥ��Ǥ��ޤ�������ι�ʸ�Ϥ��Υǥ��쥯�ƥ��֤�
�����򻲾Ȥ��Ƥ����������ޤ���<a href="#AltSyn">���ع�ʸ</a>��
���Ȥ��Ƥ���������</p>
</div>
</div>
<div class="bottomlang">
<p><span>Available Languages: </span><a href="/en/mod/mod_expires.html" hreflang="en" rel="alternate" title="English">&nbsp;en&nbsp;</a> |
<a href="/ja/mod/mod_expires.html" title="Japanese">&nbsp;ja&nbsp;</a> |
<a href="/ko/mod/mod_expires.html" hreflang="ko" rel="alternate" title="Korean">&nbsp;ko&nbsp;</a></p>
</div><div id="footer">
<p class="apache">Copyright 1995-2005 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
<p class="menu"><a href="/mod/">�⥸�塼��</a> | <a href="/mod/directives.html">�ǥ��쥯�ƥ���</a> | <a href="/faq/">FAQ</a> | <a href="/glossary.html">�Ѹ�</a> | <a href="/sitemap.html">�����ȥޥå�</a></p></div>
</body></html>