This script is designed to "pre-warm" the cache of a Cantaloupe IIIF server by sending requests to specified image URLs with multiple IIIF endpoints. The script reads image URLs from a provided text file, combines each URL with a set of IIIF endpoints, and then sends concurrent requests to the server to access and cache these images. By doing so, it ensures that the specified images are readily available in the server's cache for faster subsequent access. The script also includes error handling for missing or empty input files and provides a help menu for user guidance.
More or less the same as the python script.
To fetch a list of frequently accessed IIIF assets. (Untested)
cat access.log | grep "/iiif/2/" | awk '{print $7}' | sort | uniq -c | sort -n