<commit_before>my configuration for `squid` based caching server to prevent downloading RPM packages over and over again while playing around with virtual machines.

store_id_program
--------

using only the filename instead of the complete URL i can use alternate mirrors and still hit the cache, even if the RPM came originally from a different mirror.

Build:

    cd store_id_program && go build

squid.conf
--------
    #                 3 month    12 month
    refresh_pattern . 129600 33% 525600

    store_id_program /path/to/store_id_program
    store_id_children 5 startup=1

    # have not seen a larger RPM yet<commit_msg>described changes to squid.conf<commit_after>my configuration for `squid` based caching server to prevent downloading RPM packages over and over again while playing around with virtual machines.

store_id_program
--------

using only the filename instead of the complete URL i can use alternate mirrors and still hit the cache, even if the RPM came originally from a different mirror.

Build:

    cd store_id_program && go build

squid.conf
--------

i use the default configuration with the exception of refresh_patterns, which i replaced with my own:

    #                 3 month    12 month
    refresh_pattern . 129600 33% 525600

plus the additional configuration:

    store_id_program /path/to/store_id_program
    store_id_children 5 startup=1

    # have not seen a larger RPM yet
{'fraction_non_alphanumeric': 0.05329593267882188, 'fraction_numerical': 0.02664796633941094, 'mean_word_length': 3.197058823529412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7260329', 'n_tokens_mistral': 407, 'n_tokens_neox': 362, 'n_words': 178}