From 2da67940d50865d206f6a79165ce7b3de5a90de3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Wed, 3 Jan 2018 15:20:12 +0200 Subject: url: add "Cache-Control: no-cache" header with --force-refresh fixes #8161 --- src/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/url.c b/src/url.c index 4d7c7e6..18a7b9d 100644 --- a/src/url.c +++ b/src/url.c @@ -120,7 +120,7 @@ static struct apk_istream *apk_istream_fetch(const char *url, time_t since) if (!fis || !u) goto err; u->last_modified = since; - io = fetchXGet(u, &fis->urlstat, "i"); + io = fetchXGet(u, &fis->urlstat, (apk_force & APK_FORCE_REFRESH) ? "Ci" : "i"); if (!io) { rc = fetch_maperror(fetchLastErrCode); goto err; -- cgit v1.2.3