Merge "Makes image caching more resilient"
This commit is contained in:
commit
d323928af0
@ -61,7 +61,7 @@ done
|
||||
url=$1
|
||||
dest=$2
|
||||
time_cond=
|
||||
curl_opts=""
|
||||
curl_opts="--retry 3 --retry-delay 30 "
|
||||
|
||||
if [ -z $url -o -z $dest ] ; then
|
||||
show_options 1
|
||||
@ -77,7 +77,7 @@ else
|
||||
fi
|
||||
|
||||
if [ "$FORCE_REVALIDATE" = "1" ]; then
|
||||
curl_opts="-H 'Pragma: no-cache, must-revalidate' -H 'Cache-Control: no-cache, must-revalidate'"
|
||||
curl_opts+="-H 'Pragma: no-cache, must-revalidate' -H 'Cache-Control: no-cache, must-revalidate'"
|
||||
success="Downloaded and cached $url, having forced upstream caches to revalidate"
|
||||
elif [ -f $dest -a -s $dest ] ; then
|
||||
time_cond="-z $dest"
|
||||
|
Loading…
Reference in New Issue
Block a user