Compare commits

...

1 Commits

Author SHA1 Message Date
link2xt
0b0ad62a4d feat(http): revalidate .json every ten minutes rather than 1 hour 2025-02-16 09:28:06 +00:00

View File

@@ -108,6 +108,10 @@ fn http_url_cache_timestamps(url: &str, mimetype: Option<&str>) -> (i64, i64) {
// use the same path for all app versions,
// so may change, but it is not critical if outdated icon is displayed.
now + 3600 * 24
} else if url.ends_with(".json") {
// Revalidate JSON such as https://apps.testrun.org/xdcget-lock.json
// every 10 minutes.
now + 600
} else {
// Revalidate everything else after 1 hour.
//