url: add "Cache-Control: no-cache" header with --force-refresh

fixes #8161
cute-signatures
Timo Teräs 2018-01-03 15:20:12 +02:00
parent 039ff3bd46
commit 2da67940d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;