Crates.io | warmer |
lib.rs | warmer |
version | 0.1.2 |
source | src |
created_at | 2023-09-04 10:26:58.82149 |
updated_at | 2023-09-08 21:08:12.068797 |
description | A lightweight CDN cache warmer. A sitemap.xml is required for this to work. See README on how to use. |
homepage | |
repository | https://github.com/codingsasi/warmer |
max_upload_size | |
id | 962958 |
size | 89,741 |
A CDN cache warmer in rust for the sitemap.xml files that look like this:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>https://abh.ai/</loc>
<lastmod>2022-06-25T20:46Z</lastmod>
<changefreq>daily</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://abh.ai/photos/nature</loc>
<lastmod>2022-09-25T05:33Z</lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
<url>
<loc>https://abh.ai/portraits</loc>
<lastmod>2022-09-24T18:42Z</lastmod>
<changefreq>monthly</changefreq>
<priority>0.7</priority>
</url>
</urlset>
Download (from here) and run the executable binary on linux with the following command
warmer http(s)://someurl.com interl
- ./warmer https://abh.ai 5
- ./warmer https://abh.ai 1
warmer
libudev-dev
, libssl-dev
, openssl
, pkg-config
, build-essential
.Large sitemaps, that include other zipped or gzipped sitemaps are not supported yet. I'll release that as and when I get time. But for most sitemaps this should warm it just fine. Currently on supported on 64-bit linux OS.