summaryrefslogtreecommitdiffstats
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-03 16:00:38 +0200
commit2da67940d50865d206f6a79165ce7b3de5a90de3 (patch)
tree3522240ad3703263c3a1684a5bfe9d7ef0e2094c
parent039ff3bd466819909a5295a43e40947a9e0b6c16 (diff)
downloadapk-tools-2da67940d50865d206f6a79165ce7b3de5a90de3.tar.bz2
apk-tools-2da67940d50865d206f6a79165ce7b3de5a90de3.tar.xz
url: add "Cache-Control: no-cache" header with --force-refresh
fixes #8161
-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;