Include the "Last Modified" header on Raw file download

XMLWordPrintable

    • 0
    • 1

      Problem Definition

      Looking into downloading RAW files but need the files to have the header: "Last Modified", which is needed so an application can compare the header/date and make a decision if to download the file or not.

      Suggested Solution

      Having a "Last Modified" header in a raw download file. To exemplify better, the screenshot below shows a test downloading the headers of 2 raw files, one hosted in S3 and another hosted in a Bitbucket instance, and as we can see in the screenshot the headers in the S3 hosted file include the Last Modified header while the one in Bitbucket doesn't:


       

      Workaround

      The closest workaround is to use /rest/api/1.0/projects/<projectKey>/repos/<repositorySlug>/last-modified/ endpoint, but this endpoint will list all the file's attributes related to a commit. There isn't a rest endpoint that references a specific file from a repository.

              Assignee:
              Unassigned
              Reporter:
              Rodrigo M (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: