1<?xml version="1.0" encoding="EUC-KR"?> 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="ko" xml:lang="ko"><head><!-- 4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 5 This file is generated from xml source: DO NOT EDIT 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 --> 8<title>mod_expires - Apache HTTP Server</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 Server Version 2.4</p> 20<img alt="" src="/images/feather.gif" /></div> 21<div class="up"><a href="./"><img title="<-" alt="<-" src="/images/left.gif" /></a></div> 22<div id="path"> 23<a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.4</a> > <a href="./">���</a></div> 24<div id="page-content"> 25<div id="preamble"><h1>����ġ ��� mod_expires</h1> 26<div class="toplang"> 27<p><span>������ ���: </span><a href="/en/mod/mod_expires.html" hreflang="en" rel="alternate" title="English"> en </a> | 28<a href="/fr/mod/mod_expires.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 29<a href="/ja/mod/mod_expires.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 30<a href="/ko/mod/mod_expires.html" title="Korean"> ko </a></p> 31</div> 32<div class="outofdate">�� ������ �ֽ��� ���� �ƴմϴ�. 33 �ֱٿ� ����� ������ ���� ������ ����ϼ���.</div> 34<table class="module"><tr><th><a href="module-dict.html#Description">����:</a></th><td>����ڰ� ������ ���ؿ� ��� <code>Expires</code>�� 35<code>Cache-Control</code> HTTP ����� ���Ѵ�</td></tr> 36<tr><th><a href="module-dict.html#Status">����:</a></th><td>Extension</td></tr> 37<tr><th><a href="module-dict.html#ModuleIdentifier">����:</a></th><td>expires_module</td></tr> 38<tr><th><a href="module-dict.html#SourceFile">�ҽ�����:</a></th><td>mod_expires.c</td></tr></table> 39<h3>���</h3> 40 41 <p>�� ����� ���� ������ <code>Expires</code> HTTP ����� 42 <code>Cache-Control</code> HTTP ����� <code>max-age</code> 43 ���þ� ������ �����Ѵ�. �������� ������ ������ ������ �ð� 44 Ȥ�� Ŭ���̾�Ʈ�� ������ �ð��� ��������� ������ �� �ִ�.</p> 45 46 <p>�� HTTP ������� Ŭ���̾�Ʈ���� ������ 47 ��ȿ���� ���Ӽ��� �˷��ش�. �� �ð��� ���� �������ʾҴٸ�, 48 ������ ij������ �����͵� �ȴ�. �������� �����ٸ� ij���� 49 ���� "����ǰ�" ��ȿ���� �ʴٰ� �����Ͽ�, �ҽ����� ������ 50 ���� ���;� �Ѵ�.</p> 51 52 <p><code class="directive"><a href="/mod/mod_headers.html#header">Header</a></code> ���þ 53 ����Ͽ� <code>max-age</code> ���� �ٸ� 54 <code>Cache-Control</code> ���þ�(<a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9">RFC 55 2616, 14.9 ��</a> ���)�� ������ �� �ִ�.</p> 56 57</div> 58<div id="quickview"><h3 class="directives">���þ��</h3> 59<ul id="toc"> 60<li><img alt="" src="/images/down.gif" /> <a href="#expiresactive">ExpiresActive</a></li> 61<li><img alt="" src="/images/down.gif" /> <a href="#expiresbytype">ExpiresByType</a></li> 62<li><img alt="" src="/images/down.gif" /> <a href="#expiresdefault">ExpiresDefault</a></li> 63</ul> 64<h3>����</h3> 65<ul id="topics"> 66<li><img alt="" src="/images/down.gif" /> <a href="#AltSyn">�ٸ� ���� ����</a></li> 67</ul><ul class="seealso"><li><a href="#comments_section">Comments</a></li></ul></div> 68<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 69<div class="section"> 70<h2><a name="AltSyn" id="AltSyn">�ٸ� ���� ����</a></h2> 71 <p><code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code>�� 72 <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> 73 ���þ �� �б� ���� ������� ����� �� �ִ�:</p> 74 75 <div class="example"><p><code> 76 ExpiresDefault "<base> [plus] {<num> 77 <type>}*"<br /> 78 ExpiresByType type/encoding "<base> [plus] 79 {<num> <type>}*" 80 </code></p></div> 81 82 <p><base>�� ������ �ϳ��̴�:</p> 83 84 <ul> 85 <li><code>access</code></li> 86 87 <li><code>now</code> ('<code>access</code>'�� ����)</li> 88 89 <li><code>modification</code></li> 90 </ul> 91 92 <p><code>plus</code> Ű����� �� �ȴ�. <num>�� 93 [<code>atoi()</code>�� ����� �� �ִ�] �������̴�. 94 <type>�� ������ �ϳ��̴�:</p> 95 96 <ul> 97 <li><code>years</code></li> 98 <li><code>months</code></li> 99 <li><code>weeks</code></li> 100 <li><code>days</code></li> 101 <li><code>hours</code></li> 102 <li><code>minutes</code></li> 103 <li><code>seconds</code></li> 104 </ul> 105 106 <p>���� ���, ���� ��δ� ������ �⺻������ ���ӵ��� 1���Ŀ� 107 ����ȴٰ� �����Ѵ�:</p> 108 109 <div class="example"><p><code> 110 ExpiresDefault "access plus 1 month"<br /> 111 ExpiresDefault "access plus 4 weeks"<br /> 112 ExpiresDefault "access plus 30 days" 113 </code></p></div> 114 115 <p>'<num> <type>' ������ �ݺ��ؼ� ����Ͽ� 116 ����ð��� �ڼ��� ������ �� �ִ�:</p> 117 118 <div class="example"><p><code> 119 ExpiresByType text/html "access plus 1 month 15 120 days 2 hours"<br /> 121 ExpiresByType image/gif "modification plus 5 hours 3 122 minutes" 123 </code></p></div> 124 125 <p>���� �����ð�(modification)�� �������� ����ð��� �����ϴ� 126 ��� ������ ��ũ�� �ִ� ���Ͽ��� �������� �ʴ´ٸ� Expires 127 ����� ������ <strong>�ʴ´�</strong>. �� ��� ���뿡 �����ð��� 128 ��� �����̴�.</p> 129</div> 130<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 131<div class="directive-section"><h2><a name="ExpiresActive" id="ExpiresActive">ExpiresActive</a> <a name="expiresactive" id="expiresactive">���þ�</a></h2> 132<table class="directive"> 133<tr><th><a href="directive-dict.html#Description">����:</a></th><td><code>Expires</code> ����� ���Ѵ�</td></tr> 134<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>ExpiresActive On|Off</code></td></tr> 135<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ, directory, .htaccess</td></tr> 136<tr><th><a href="directive-dict.html#Override">Override �ɼ�:</a></th><td>Indexes</td></tr> 137<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> 138<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_expires</td></tr> 139</table> 140 <p>�� ���þ�� �ش� ������ ���� (��, <code>.htaccess</code> 141 ���Ͽ��� ����Ѵٸ� �� ���丮 �Ʒ��� �ִ� �����鸸 �ش�ȴ�.) 142 <code>Expires</code>�� <code>Cache-Control</code> ����� 143 ������ ������ �����Ѵ�. (<code>.htaccess</code> ���� ������ 144 �� ���� �ܰ迡�� ���������� ���������ʴ� ��) 145 <code>Off</code>�̸� �ش� ������ �ִ� ������ �̵� ����� 146 ������ �ʴ´�. <code>On</code>�̸� <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code>�� <code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> ���þ�� 147 (<em>�ش� ���� ����϶�</em>) ������ ��Ģ�� ��� �����Ϸ��� 148 ������ �� ������� ���Ѵ�.</p> 149 150 <p>�� ���þ <code>Expires</code>�� <code>Cache-Control</code> 151 ����� ���������� �ʴ´�. ��Ģ�� �ش����� �ʴٸ� ��ġ �� 152 ���þ ��� ��ó�� ����� ������ �ʴ´�.</p> 153 154</div> 155<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 156<div class="directive-section"><h2><a name="ExpiresByType" id="ExpiresByType">ExpiresByType</a> <a name="expiresbytype" id="expiresbytype">���þ�</a></h2> 157<table class="directive"> 158<tr><th><a href="directive-dict.html#Description">����:</a></th><td>MIME type���� <code>Expires</code> ������� �����Ѵ�</td></tr> 159<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>ExpiresByType <var>MIME-type</var> 160<var><code>seconds</var></code></td></tr> 161<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ, directory, .htaccess</td></tr> 162<tr><th><a href="directive-dict.html#Override">Override �ɼ�:</a></th><td>Indexes</td></tr> 163<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> 164<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_expires</td></tr> 165</table> 166 <p>�� ���þ�� Ư�� ������ (<em>���� ���</em>, 167 <code>text/html</code>) ������ ���� <code>Expires</code> 168 ������� <code>Cache-Control</code> ����� <code>max-age</code> 169 ���þ�� �����Ѵ�. �ι�° �ƱԸ�Ʈ�� ����ð��� �����Ҷ� 170 ���� �ð��� ���� �ʴ��� ���� �����Ѵ�. <code>Cache-Control: 171 max-age</code>�� ����ð����� ��û�� �ð��� ���� ����ϰ�, 172 ���� �ʴ����� ǥ���Ѵ�.</p> 173 174 <p>���� �ð��� ������ �ֱ� �����ð� Ȥ�� Ŭ���̾�Ʈ�� ������ 175 ������ �ð��̴�. �̶� ���� ��������� 176 <code><var><code></var></code> �ʵ�� �����ؾ� �Ѵ�. 177 <code>M</code>�� ���� �ð����� ������ �ֱ� �����ð��� 178 ����ϰ�, <code>A</code>�� Ŭ���̾�Ʈ�� ���� �ð��� ����Ѵ�.</p> 179 180 <p>���̴� �̹��ϴ�. <code>M</code>�� ����ϸ� ij���� �ִ� 181 ��� ���纻�� ���� �ð��� ����ȴ�. ���� �� ���� URL�� 182 ã�ƺ� �� �ִ� �ְ����� ���� �뵵�� ����. <code>A</code>�� 183 ����ϸ� ���纻�� ����ð��� ���� �ٸ���. �̴� ���� ���������ʴ� 184 �����Ͽ�, Ư�� ���� �������� ���� ���� �����Ҷ� (<em>���� 185 ���</em>, �̹����� ��������� ª�� �Ⱓ���� �ݺ��ؼ� ���ٵȴ�), 186 �����ϴ�.</p> 187 188 <div class="example"><h3>����:</h3><p><code> 189 # ��������� ����Ѵ�<br /> 190 ExpiresActive On<br /> 191 # Ŭ���̾�Ʈ ij���� GIF ���� �� ���Ŀ� �����Ѵ�<br /> 192 ExpiresByType image/gif A2592000<br /> 193 # HTML ������ ������ �����ϰ� ��ȿ�ϴ� 194 ExpiresByType text/html M604800 195 </code></p></div> 196 197 <p>�� ���þ�� <code>ExpiresActive On</code>�� ����Ҷ��� 198 ��ȿ���� �����϶�. <code class="directive"><a href="#expiresdefault">ExpiresDefault</a></code> ���þ 199 ����Ͽ� Ư�� MIME type�� ���ؼ�<em>��</em> ����ð��� 200 ������ �� �ִ�.</p> 201 202 <p>�տ��� ������ <a href="#AltSyn">�ٸ� ����</a>�� ����Ͽ� 203 ����ð��� ����� ���� �ִ�.</p> 204 205</div> 206<div class="top"><a href="#page-header"><img alt="top" src="/images/up.gif" /></a></div> 207<div class="directive-section"><h2><a name="ExpiresDefault" id="ExpiresDefault">ExpiresDefault</a> <a name="expiresdefault" id="expiresdefault">���þ�</a></h2> 208<table class="directive"> 209<tr><th><a href="directive-dict.html#Description">����:</a></th><td>����ð��� ����ϴ� �⺻ �˰��</td></tr> 210<tr><th><a href="directive-dict.html#Syntax">����:</a></th><td><code>ExpiresDefault <var><code>seconds</var></code></td></tr> 211<tr><th><a href="directive-dict.html#Context">������:</a></th><td>�ּ�������, ����ȣ��Ʈ, directory, .htaccess</td></tr> 212<tr><th><a href="directive-dict.html#Override">Override �ɼ�:</a></th><td>Indexes</td></tr> 213<tr><th><a href="directive-dict.html#Status">����:</a></th><td>Extension</td></tr> 214<tr><th><a href="directive-dict.html#Module">���:</a></th><td>mod_expires</td></tr> 215</table> 216 <p>�� ���þ�� �ش� ������ �ִ� ��� ������ ����ð��� 217 ����ϴ� �⺻ �˰���� �����Ѵ�. <code class="directive"><a href="#expiresbytype">ExpiresByType</a></code> ���þ 218 ����Ͽ� ����� ������ �� �ִ�. �ƱԸ�Ʈ ���� ���� 219 �ڼ��� ������ �� ���þ�� <a href="#AltSyn">�ٸ� ����</a>�� 220 ����϶�.</p> 221 222</div> 223</div> 224<div class="bottomlang"> 225<p><span>������ ���: </span><a href="/en/mod/mod_expires.html" hreflang="en" rel="alternate" title="English"> en </a> | 226<a href="/fr/mod/mod_expires.html" hreflang="fr" rel="alternate" title="Français"> fr </a> | 227<a href="/ja/mod/mod_expires.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | 228<a href="/ko/mod/mod_expires.html" title="Korean"> ko </a></p> 229</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">Comments</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&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> 230<script type="text/javascript"><!--//--><![CDATA[//><!-- 231var comments_shortname = 'httpd'; 232var comments_identifier = 'http://httpd.apache.org/docs/2.4/mod/mod_expires.html'; 233(function(w, d) { 234 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 235 d.write('<div id="comments_thread"><\/div>'); 236 var s = d.createElement('script'); 237 s.type = 'text/javascript'; 238 s.async = true; 239 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 240 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 241 } 242 else { 243 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 244 } 245})(window, document); 246//--><!]]></script></div><div id="footer"> 247<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> 248<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[//><!-- 249if (typeof(prettyPrint) !== 'undefined') { 250 prettyPrint(); 251} 252//--><!]]></script> 253</body></html>