9 releases

0.3.1 Mar 6, 2024
0.3.0 Apr 12, 2023
0.2.4 Apr 12, 2023
0.2.3 Mar 8, 2021
0.1.1 Jan 26, 2021

#874 in Web programming

Download history 4/week @ 2024-08-12 21/week @ 2024-09-09 26/week @ 2024-09-16 76/week @ 2024-09-23 24/week @ 2024-09-30 37/week @ 2024-10-07 29/week @ 2024-10-14 47/week @ 2024-10-21 17/week @ 2024-10-28 35/week @ 2024-11-04 28/week @ 2024-11-11 13/week @ 2024-11-18

95 downloads per month

MIT license

30KB
669 lines

simple cache-warming via sitemap

This small command line tool can be used to warm CDNs or website caches, based on a sitemap.

USAGE:
    heater [OPTIONS] <sitemap_url>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --header <HEADER:VALUE>...           header variation
        --language <IEFT language tag>...    language tags will be used to generate all possible permutations of these
                                             languages, including their order

ARGS:
    <sitemap_url>    sitemap URL

installation

For now, it can be simply installed globally via cargo install heater.

examples

  • heater http://site/sitemap.xml will read the pages in the sitemap and request all of them

  • heater http://site/sitemap.xml --header accept-language:en will set the accept-language header to en for the requests. Any header can be set.

  • heater http://site/sitemap.xml --header accept-language:en --header accept-language:de will request all the pages with both possible accept-language headers.

  • heater http://site/sitemap.xml --language de --language en will request accept-language with permutations for these languages: de, en, en, de, en,de.

Dependencies

~14–28MB
~413K SLoC