diff --git a/lib/unfurl-shortcode.js b/lib/unfurl-shortcode.js index e9f6dea..67dac41 100644 --- a/lib/unfurl-shortcode.js +++ b/lib/unfurl-shortcode.js @@ -5,7 +5,7 @@ import { createHash } from "crypto"; const CACHE_DIR = resolve(import.meta.dirname, "..", ".cache", "unfurl"); const CACHE_DURATION_MS = 7 * 24 * 60 * 60 * 1000; // 1 week -const FAILURE_CACHE_MS = 24 * 60 * 60 * 1000; // 1 day for failed fetches +const FAILURE_CACHE_MS = 7 * 24 * 60 * 60 * 1000; // 1 week — YouTube/bot-blocked sites never succeed, no point retrying daily const USER_AGENT = "Mozilla/5.0 (compatible; Indiekit/1.0; +https://getindiekit.com)"; // Concurrency limiter — prevents overwhelming outbound network