Set CacheDefaultExpire for 8001/8002 on mirrors
We are actually okay with caching docker things a little longer then the default 1 hour, due to their size and since layers using sha1 hash. Bump the default in this case to 1 day before starting to expire. Change-Id: I5ca7ad30d6bd2228d5e6941acde78ee4a0b0bec8 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
4a5bb85268
commit
243bd42a07
@ -256,6 +256,10 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
|
||||
CacheMaxFileSize 5368709120
|
||||
# Ignore expire headers as the urls use sha256 hashes.
|
||||
CacheIgnoreQueryString On
|
||||
# NOTE(pabelanger): In the case of docker, if neither an expiry date nor
|
||||
# last-modified date are provided default expire to 1 day. This is up from
|
||||
# 1 hour.
|
||||
CacheDefaultExpire 86400
|
||||
CacheStoreExpired On
|
||||
|
||||
# registry-1.docker.io
|
||||
@ -314,6 +318,10 @@ LogFormat "%h %l %u %t \"%r\" %>s %b %{cache-status}e \"%{Referer}i\" \"%{User-a
|
||||
CacheMaxFileSize 5368709120
|
||||
# Ignore expire headers as the urls use sha256 hashes.
|
||||
CacheIgnoreQueryString On
|
||||
# NOTE(pabelanger): In the case of docker, if neither an expiry date nor
|
||||
# last-modified date are provided default expire to 1 day. This is up from
|
||||
# 1 hour.
|
||||
CacheDefaultExpire 86400
|
||||
CacheStoreExpired On
|
||||
|
||||
# NOTE(SamYaple): Docker has historically not allowed to have anything in
|
||||
|
Loading…
x
Reference in New Issue
Block a user