Skip to content
Snippets Groups Projects
Commit ecc6d60e authored by Timo Teräs's avatar Timo Teräs
Browse files

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

fixes #8161

(cherry picked from commit 2da67940)
parent 17bb6c7c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment