.
: http://itpm.msu.su/manual/ja/mod/mod_expires.html
: Sat Feb 5 01:50:17 2005 : Mon Oct 1 23:32:31 2012 : Windows-1251 : |
Apache HTTP ???? ?????? 2.0
: | ?????'???????????? Expires ?
Cache-Control HTTP ????R |
---|---|
?????????: | Extension |
???????+': | expires_module |
????????????: | mod_expires.c |
??????????????+? Expires
HTTP ???
? Cache-Control
???? max-age
???????????
????????????????R????'?????
???????????????'??'??????'?????????
?????????-?????
????????????????????? --?Ȟ?-?'??????????-?????????????? ''???????????????'???????? ?-?????????????'???????-??????????? ?-???????????????? (expired) ?????????? ????'????????????Ƀ?????????
max-age
? (RFC
2616 section 14.9 '??) ? Cache-Control
????????????
?????? Header
???????????
'???????-?????
ExpiresDefault
???????????
ExpiresByType
???????????
??????ߜ?????'???????????-???:
ExpiresDefault "<base> [plus] {<num>
<type>}*"
ExpiresByType type/encoding "<base> [plus]
{<num> <type>}*"
<base> ???????'???:
access
now
('access
' ??)modification
plus
?-???????????????<num>
? (atoi()
???+?+?) ???
<type> ???????'???:
years
months
weeks
days
hours
minutes
seconds
??????????????????????????????????'??? 1 ?? ??????????????'????:
ExpiresDefault "access plus 1 month"
ExpiresDefault "access plus 4 weeks"
ExpiresDefault "access plus 30 days"
??'????????' '<num> <type>' ?????????????'?? ?????????-???:
ExpiresByType text/html "access plus 1 month 15
days 2 hours"
ExpiresByType image/gif "modification plus 5 hours 3
minutes"
??'?????????'?????????Expires ???? ?????????????????????????????????? ??????????????????????????'????????'??????
: | Expires ????R?-???? |
---|---|
??: | ExpiresActive On|Off |
?????-???: | ??????????, ??????????, ????????, .htaccess |
???-: | Indexes |
?????????: | Extension |
??????: | mod_expires |
??????????????+?????-?????Μ?
Expires
? Cache-Control
????
-?????'?????'???????
(????.htaccess
????????????????????
????Ń???????????????) Off
?
???????+Μ??????????
R????'? (.htaccess
?????????????
???-??????????????????????-????????+??)??
On
?????????????? ExpiresByType
???????????
ExpiresDefault
??????????
??????????????????? (???????????'??)??
?????????????? Expires
?
Cache-Control
??????
??????+???????????????????????????
?????????????????????????????????????
'???????'????'??????'?????????????
: | MIME ???????????? Expires ???? |
---|---|
??: | ExpiresByType MIME-type
<code>seconds |
?????-???: | ??????????, ??????????, ????????, .htaccess |
???-: | Indexes |
?????????: | Extension |
??????: | mod_expires |
??????????????'????????????-????
(?? text/html
)
???R??? Expires
???? Cache-Control
???? max-age
??????????????????
??Μ?????'?R?????????'??????
????????Cache-Control:
max-age
????'??'????????'??????????
???????R???????
??'??????????????'??'??????????????-??????
?????'??'??????????'???-?'? <code>
????'??????M
???'????
????????????'??????????A
???????????
?????'??'??'??????????????
?????ʜ???????????M
?'?????????
??????-?????????????-?????-?????+'???
??????????+? URL ?????'???'????????
??-?????A
?'????????????
'???????????????Ɯ??????????????????????
???????????????????-????Ȟ??????+???
'???????- (?????????'?????˞'??
?????'???????-) ?-?????
# enable expirations
ExpiresActive On
# expire GIF images after a month in the client's cache
ExpiresByType image/gif A2592000
# HTML documents are good for a week from the
# time they were changed
ExpiresByType text/html M604800
?????????????? ExpiresActive On
?'??????
??-??-????????????????????????
'???? MIME ?????????? ExpiresDefault
???????????
???????????-??????
???????????????? '??????Ξ''??'?????????-?????
: | ????''????????????????? |
---|---|
??: | ExpiresDefault <code>seconds |
?????-???: | ??????????, ??????????, ????????, .htaccess |
???-: | Indexes |
?????????: | Extension |
??????: | mod_expires |
??????????????+???Ϝ????????-???????
??????????Ξ''????????????????ExpiresByType
??????????????
?????????-?????????-????????????????????????
?'????????????????????
'????????????