Project

General

Profile

Feature #8161

Don't use cached items if --no-cache is specified and proxy is used

Added by Antoni Dabek over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
11/16/2017
Due date:
% Done:

100%

Estimated time:

Description

Currently apk would use cached in proxy copy of item it is fetching from repository because it does not indicate that it would prefer to use newest version. It would be useful if when --no-cache or other new option is used, apk would add "Cache-Control" HTTP header with value "no-cache" to ensure that newest copy of index and/or package is being downloaded.


Related issues

Related to Alpine Package Keeper - Feature #5980: Ability to Default to --no-cacheNew07/28/2016

Associated revisions

Revision f90af35e (diff)
Added by Timo Teräs over 1 year ago

libfetch: add option to set "Cache-Control: no-cache"

ref #8161

Revision 2da67940 (diff)
Added by Timo Teräs over 1 year ago

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

fixes #8161

Revision b7f70c06 (diff)
Added by Timo Teräs over 1 year ago

libfetch: add option to set "Cache-Control: no-cache"

ref #8161

(cherry picked from commit f90af35e9c563bd4f865d8d47a7ae357191494db)

Revision ecc6d60e (diff)
Added by Timo Teräs over 1 year ago

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

fixes #8161

(cherry picked from commit 2da67940d50865d206f6a79165ce7b3de5a90de3)

History

#1 Updated by Jakub Jirutka over 1 year ago

  • Project changed from Alpine Linux to Alpine Package Keeper

#2 Updated by Timo Teräs over 1 year ago

I have a patch for this. But just before pushing it occurred to me that `--no-cache` is often used in docker installs and similar to not make a local cache of packages. I wonder if this would deserve a different option. Thoughts?

#3 Updated by Timo Teräs over 1 year ago

  • Assignee set to Timo Teräs

#4 Updated by Timo Teräs over 1 year ago

  • Related to Feature #5980: Ability to Default to --no-cache added

#5 Updated by Timo Teräs over 1 year ago

Maybe --force-http-refresh or similar?

#6 Updated by Timo Teräs over 1 year ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF