Add If-Modified-Since:/Last-modified support to downloaded archives
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=23823) </details> <!--IssueSummary end--> ### Problem to solve If a user runs wget multiple times: ``` $ wget -N https://gitlab.com/gitlab-org/gitter/env/-/archive/master/env-master.tar.bz2 $ wget -N https://gitlab.com/gitlab-org/gitter/env/-/archive/master/env-master.tar.bz2 (...) Last-modified header missing -- time-stamps turned off. (...) ``` It downloads every time because gitlab did not informed the HTTP header field Last-modified. ### Further details Adding Last-modified, it will save gitlab and user bandwidth. ### Proposal Add If-Modified-Since:/Last-modified support using the timestamp of the last commit ### What does success look like, and how can we measure that? ``` $ wget -N https://gitlab.com/gitlab-org/gitter/env/-/archive/master/env-master.tar.bz2 $ wget -N https://gitlab.com/gitlab-org/gitter/env/-/archive/master/env-master.tar.bz2 (...) ... 304 Not Modified (...) ``` ### Links / references
issue