Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
apk-tools
apk-tools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • apk-toolsapk-tools
  • Issues
  • #8161

Closed
Open
Opened Nov 16, 2017 by Antoni Dabek@adabek
  • Report abuse
  • New issue
Report abuse New issue

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

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.

(from redmine: issue id 8161, created on 2017-11-16, closed on 2019-05-03)

  • Relations:
    • relates #5980
  • Changesets:
    • Revision f90af35e by Timo Teräs on 2018-01-03T12:25:07Z:
libfetch: add option to set "Cache-Control: no-cache"

ref #8161
  • Revision 2da67940 by Timo Teräs on 2018-01-03T14:00:38Z:
url: add "Cache-Control: no-cache" header with --force-refresh

fixes #8161
  • Revision b7f70c06 by Timo Teräs on 2018-01-09T07:56:05Z:
libfetch: add option to set "Cache-Control: no-cache"

ref #8161

(cherry picked from commit f90af35e9c563bd4f865d8d47a7ae357191494db)
  • Revision ecc6d60e by Timo Teräs on 2018-01-09T07:56:15Z:
url: add "Cache-Control: no-cache" header with --force-refresh

fixes #8161

(cherry picked from commit 2da67940d50865d206f6a79165ce7b3de5a90de3)
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
3
Labels
Closed Feature Normal
Assign labels
  • View project labels
Reference: alpine/apk-tools#8161