From 1ca561ed0ecfa59b70a10191ac8e58cde90d126e Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sat, 21 Jun 2025 15:20:01 +0700 Subject: brokenlinks: implement caching for external URLs Any succesful fetch on external URLs, will be recorded into jarink cache file, located in user's home cache directory. For example, in Linux it would be `$HOME/.cache/jarink/cache.json`. This help improve the future rescanning on the same or different target URL, minimizing network requests. --- brokenlinks/testdata/exp_cache.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 brokenlinks/testdata/exp_cache.json (limited to 'brokenlinks/testdata/exp_cache.json') diff --git a/brokenlinks/testdata/exp_cache.json b/brokenlinks/testdata/exp_cache.json new file mode 100644 index 0000000..563164d --- /dev/null +++ b/brokenlinks/testdata/exp_cache.json @@ -0,0 +1,19 @@ +{ + "scanned_links": { + "http://127.0.0.1:11900": { + "url": "http://127.0.0.1:11900", + "size": 976, + "response_code": 200 + }, + "http://127.0.0.1:11900/page2": { + "url": "http://127.0.0.1:11900/page2", + "size": 410, + "response_code": 200 + }, + "https://127.0.0.1:11838": { + "url": "https://127.0.0.1:11838", + "size": 976, + "response_code": 200 + } + } +} -- cgit v1.3