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

PyPI hosted repository does not send etag header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.5.0, 3.5.1, 3.5.2, 3.6.0
    • Fix Version/s: 3.15.0
    • Component/s: PyPI
    • Labels:
    • Story Points:
      1

      Description

      Seems like the response from Nexus when downloading a hosted PyPI artifact doesn't include an etag or expires header.  This prevents pip from caching the artifact.  I see Maven handles this better by synthesizing an etag on upload if none is set:  MavenFacetUtils.java

      You can see here for how pip handles the caching, and why an etag or expires header is desirable.
       
      The response looks like:
       
      HTTP/1.1 200 OK

      Date: Mon, 02 Oct 2017 16:49:10 GMT

      Server: Nexus/3.5.0-02 (OSS)

      X-Frame-Options: SAMEORIGIN

      X-Content-Type-Options: nosniff

      Last-Modified: Mon, 25 Sep 2017 22:13:17 GMT

      Content-Type: application/zip

      Content-Length: 51711

        Attachments

          Activity

            People

            • Assignee:
              mdodgson Mark Dodgson
              Reporter:
              staticsnow@gmail.com Mike Poindexter
              Last Updated By:
              Mark Dodgson
              Team:
              NXRM - Cypher
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: