Apache HTTP Server Version 2.4
: | URI Ű Ͽ ijѴ. |
---|---|
: | Experimental |
: | cache_module |
ҽ: | mod_cache.c |
mod_cache
ǻͿ ִ ̳
Ͻõ ij ִ RFC 2616
ȣȯ HTTP ij Ѵ. mod_cache
Ϸ (storage management module) ʿϴ.
⺻ ġ ΰ ִ:
mod_cache_disk
mod_mem_cache
mod_mem_cache
ϱڸ ijϰų
(heap) ü ijϴ ΰ Ѱ
ϵ ִ. mod_mem_cache
ڽ ijϰų, (Ͻ(reverse proxy)
˷) ProxyPass
Ͽ mod_proxy
ij ִ.URI Ű ij ϰ ´. ٺȣ ijʴ´.
õ | õ þ |
---|---|
#
# ij
#
LoadModule cache_module modules/mod_cache.so
<IfModule mod_cache.c>
#LoadModule cache_disk_module modules/mod_cache_disk.so
<IfModule mod_cache_disk.c>
CacheRoot c:/cacheroot
CacheSize 256
CacheEnable disk /
CacheDirLevels 5
CacheDirLength 3
</IfModule>
LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048
</IfModule>
</IfModule>
: | ð ij ⺻ Ⱓ. |
---|---|
: | CacheDefaultExpire seconds |
⺻: | CacheDefaultExpire 3600 (one hour) |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
CacheDefaultExpire
þ
ð ֱټð ij ʴ
⺻ ð Ѵ. CacheMaxExpire
ʴ´.
CacheDefaultExpire 86400
: | Add an X-Cache-Detail header to the response. |
---|---|
: |
|
: | ּ, ȣƮ, directory, .htaccess |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Ư URL ij ʴ´ |
---|---|
: | CacheDisable url-string |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
CacheDisable
þ ϸ
mod_cache
url-string
url ij ʴ´.
CacheDisable /local_files
: | ڸ Ͽ URL ijѴ |
---|---|
: | CacheEnable cache_type url-string |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
CacheEnable
þ ϸ
mod_cache
url-string
url ijѴ. ij ڴ cache_type
ƱԸƮ Ѵ. cache_type mem
mod_mem_cache
ϴ
ڸ Ѵ. cache_type disk
mod_cache_disk
ϴ ũ
ڸ Ѵ. cache_type fd
mod_mem_cache
ϴ ϱ ij
Ѵ.
(Ʒ ) URL ٸ
CacheEnable
þ ġ
ڰ û óҶ ڸ
Ѵ. Ͽ CacheEnable
þ ڰ ȴ.
CacheEnable mem /manual
CacheEnable fd /images
CacheEnable disk /
: | Add an X-Cache header to the response. |
---|---|
: |
|
: | ּ, ȣƮ, directory, .htaccess |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Ŭ̾Ʈ ijʴ û Ѵ. |
---|---|
: | CacheIgnoreCacheControl On|Off |
⺻: | CacheIgnoreCacheControl Off |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
no-cache no-store ij
ʴ´. CacheIgnoreCacheControl
þ ̷ ൿ Ѵ.
CacheIgnoreCacheControl
On ϸ
no-cache no-store ־
ijѴ. ʿ ij
ʴ´.
CacheIgnoreCacheControl On
: | ij HTTP () ʴ´ |
---|---|
: | CacheIgnoreHeaders header-string [header-string] ... |
⺻: | CacheIgnoreHeaders None |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
RFC 2616 ȩ(hop-by-hop) HTTP ij
ʴ´. ȩ HTTP ,
CacheIgnoreHeaders
쿡 ij ʴ´.
Connection
Keep-Alive
Proxy-Authenticate
Proxy-Authorization
TE
Trailers
Transfer-Encoding
Upgrade
CacheIgnoreHeaders
ij ϸ
ȵǴ HTTP ߰ Ѵ. , Ű(cookie)
ij ϸ ȵǴ 찡 ִ.
CacheIgnoreHeaders
ij
HTTP ´. (RFC 2616
) ij ȩ ,
CacheIgnoreHeaders
None
Ѵ.
CacheIgnoreHeaders Set-Cookie
CacheIgnoreHeaders None
CacheIgnoreHeaders
Ͽ
Expires
ij ʿ
, mod_cache Ѵ.
: | 信 Last Modified ٴ Ѵ. |
---|---|
: | CacheIgnoreNoLastMod On|Off |
⺻: | CacheIgnoreNoLastMod Off |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
ֱټ ij ʴ´.
ֱټ ( mod_include
ó߿)
ų ó ִ.
CacheIgnoreNoLastMod
þ ֱټ
ݵ ijϵ . ֱټϰ
ð CacheDefaultExpire
þ ð Ѵ.
CacheIgnoreNoLastMod On
: | Ignore query string when caching |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Ignore defined session identifiers encoded in the URL when caching |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Override the base URL of reverse proxied cache keys. |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | LastModified ð ð ϴµ ϴ . |
---|---|
: | CacheLastModifiedFactor float |
⺻: | CacheLastModifiedFactor 0.1 |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
ð ֱټ ִ ֱټ
ð ð Ѵ.
CacheLastModifiedFactor
þ
ð ϴ Ŀ factor
Ѵ:
expiry-period = time-since-last-modified-date * factor
expiry-date = current-date + expiry-period
, 10 ð Ǿ factor
0.1̶ Ⱓ 10*01 = 1 ð ȴ. ð
3:00pm̶ ð 3:00pm + 1ð = 4:00pm̴.
Ⱓ CacheMaxExpire
ٸ
CacheMaxExpire
Ѵ.
CacheLastModifiedFactor 0.5
: | Enable the thundering herd lock. |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Set the maximum possible age of a cache lock. |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Set the lock path directory. |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | ijϴ ʴ ִð |
---|---|
: | CacheMaxExpire seconds |
⺻: | CacheMaxExpire 86400 (Ϸ) |
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
CacheMaxExpire
þ
˻ʰ ij HTTP ִ ʴ
ִð Ѵ. , ִ ŭ Ǿ.
ð Ͽ ִ밪 Ų.
CacheMaxExpire 604800
: | The minimum time in seconds to cache a document |
---|---|
: |
|
: | ּ, ȣƮ, directory, .htaccess |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Run the cache from the quick handler. |
---|---|
: |
|
: | ּ, ȣƮ |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Serve stale content in place of 5xx responses. |
---|---|
: |
|
: | ּ, ȣƮ, directory, .htaccess |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.
: | Attempt to cache responses that the server reports as expired |
---|---|
: |
|
: | ּ, ȣƮ, directory, .htaccess |
: | Experimental |
: | mod_cache |
Documentation not yet translated. Please see English version of document.