Skip to content

Commit

Permalink
Adjusted order of cache warming and number of retries/timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
SuzanneSoy committed Nov 20, 2023
1 parent e877daf commit 27acbf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/pin-using-ipfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ for i in `seq 2`; do
| cut -d ' ' -f 3- \
| sed -e 's~^www/*~~' \
| while read f; do
printf "Warming up pinata cache for %s (attempt %d)...\n" "$f" "$i"
wget --tries=1 --timeout=10 -O- "https://gateway.pinata.cloud/ipfs/$h/$f" > /dev/null || true
printf "Warming up Cloudflare cache for %s (attempt %d)...\n" "$f" "$i"
wget -O- "https://cloudflare-ipfs.com/ipfs/$h/$f" > /dev/null || true
wget --tries=1 --timeout=10 -O- "https://cloudflare-ipfs.com/ipfs/$h/$f" > /dev/null || true
printf "Warming up dweb.link cache for %s (attempt %d)...\n" "$f" "$i"
wget -O- "https://$h.ipfs.dweb.link/$f" > /dev/null || true
printf "Warming up pinata cache for %s (attempt %d)...\n" "$f" "$i"
wget -O- "https://gateway.pinata.cloud/ipfs/$h/$f" > /dev/null || true
wget --tries=1 --timeout=10 -O- "https://$h.ipfs.dweb.link/$f" > /dev/null || true
done
done

Expand Down

0 comments on commit 27acbf8

Please sign in to comment.