Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19948

About negative cache of pypi library

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: 4 - Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.6.0
    • Fix Version/s: None
    • Component/s: PyPI
    • Labels:
      None

      Description

      We found that when we download a library from pypi, Artifactory adds `Cache-Control: public, max-age = 31536000` even if that specified library or version is not found (error code 404).
      We don't think it is reasonable and this causes problems in the environment like ours where cache server is built in front of Artifactory.
      That means this cache-control makes that once we try to download a package or version which does not exist, that one would be judged not to exist for 1 year even though it is registered later and actually exists.

      How can we stop issuing this cache-control in the case of 404?
      In addition, we don't think Artifactory 5.x does negative caching like this. It seems to have been changed in 6.x.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              yuki Yuki Sunago
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-19948 -
                  SYNCHRONIZED
                  • Last Sync Date: