diff options
author | Timo Teräs <timo.teras@iki.fi> | 2018-01-03 15:20:12 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2018-01-03 16:00:38 +0200 |
commit | 2da67940d50865d206f6a79165ce7b3de5a90de3 (patch) | |
tree | 3522240ad3703263c3a1684a5bfe9d7ef0e2094c /src | |
parent | 039ff3bd466819909a5295a43e40947a9e0b6c16 (diff) | |
download | apk-tools-2da67940d50865d206f6a79165ce7b3de5a90de3.tar.bz2 apk-tools-2da67940d50865d206f6a79165ce7b3de5a90de3.tar.xz |
url: add "Cache-Control: no-cache" header with --force-refresh
fixes #8161
Diffstat (limited to 'src')
-rw-r--r-- | src/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |