Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-25202

Etag header support for index.yaml

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: helm
    • Labels:

      Description

      What are you trying to do?
      Download a list of all charts (download /repository/helm/index.yaml file).
      There seems to be no ETag header support => file is fairly re-downloaded every time (instead of returning a 304 response code if current Etag matches the one provided by client)

      What feature or behavior is this required for?
      This may be very useful for CI automation tools: they may cache the index.yaml file on their side and only do re-download this file when there're changes. Especially may make sense for big helm repositories, where the index.yaml file size is significant.

      How could we solve this issue? (Not knowing is okay!)

      1. Send ETag header within a /repository/helm/iindex.yaml response
      2. Check Etag header on requests: return 304 status response with no body if request's Etag matches the current one; return 200 status code with complete contents in body otherwise.|

      https://github.com/sonatype-nexus-community/nexus-repository-helm/issues/40

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mlukaretkyi Maksym Lukaretkyi
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title