Skip to content

Commit

Permalink
url: add "Cache-Control: no-cache" header with --force-refresh
Browse files Browse the repository at this point in the history
fixes #8161

(cherry picked from commit 2da6794)
  • Loading branch information
fabled committed Jan 9, 2018
1 parent 17bb6c7 commit ecc6d60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ecc6d60

Please sign in to comment.