#sitemap #cdn #cache #warm #warming #variations

app heater

simple sitemap-based cache-warming with header variations

11 releases

0.3.3 Apr 9, 2025
0.3.2 Dec 27, 2024
0.3.1 Mar 6, 2024
0.3.0 Apr 12, 2023
0.1.1 Jan 26, 2021

#89 in Development tools

Download history 32/week @ 2025-01-04 19/week @ 2025-01-11 6/week @ 2025-01-18 6/week @ 2025-01-25 11/week @ 2025-02-01 37/week @ 2025-02-08 38/week @ 2025-02-15 27/week @ 2025-02-22 19/week @ 2025-03-01 9/week @ 2025-03-08 12/week @ 2025-03-15 3/week @ 2025-03-22 5/week @ 2025-03-29 156/week @ 2025-04-05 50/week @ 2025-04-12 16/week @ 2025-04-19

227 downloads per month

MIT license

31KB
677 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

~15–28MB
~387K SLoC