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-09 09:56:15 +0200 |
| commit | ecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb (patch) | |
| tree | 96caa4f5a99a7d7e180f7ec0998bfe307dfaf424 /src | |
| parent | 17bb6c7c5ba3625ebd93e6e0019b5401126e53f4 (diff) | |
| download | apk-tools-ecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb.tar.bz2 apk-tools-ecc6d60e64cb6bc9cb76a4e22d4113a76cd75bdb.tar.xz | |
url: add "Cache-Control: no-cache" header with --force-refresh
fixes #8161
(cherry picked from commit 2da67940d50865d206f6a79165ce7b3de5a90de3)
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; |
