aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2018-01-03 15:20:12 +0200
committerTimo Teräs <timo.teras@iki.fi>2018-01-09 09:56:15 +0200
commitecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb (patch)
tree96caa4f5a99a7d7e180f7ec0998bfe307dfaf424
parent17bb6c7c5ba3625ebd93e6e0019b5401126e53f4 (diff)
downloadapk-tools-ecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb.tar.gz
apk-tools-ecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb.tar.bz2
apk-tools-ecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb.tar.xz
url: add "Cache-Control: no-cache" header with --force-refresh
fixes #8161 (cherry picked from commit 2da67940d50865d206f6a79165ce7b3de5a90de3)
-rw-r--r--src/url.c2
1 files changed, 1 insertions, 1 deletions
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;