You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request Last-Modified HTTP header be added when displaying raw files. This allows wget and other utilities to download the file only if necessary.
Is your feature request related to a problem? Please describe.
I would like to download (e.g. wget -N https://gogs/foo/bar/raw/master/somefile) iff the file was modified.
Describe the solution you'd like
Add the Last-Modified to HTTP headers with the latest time the file was modified in the specified branch: git log -1 --format="%ad" -- somefile
Describe alternatives you've considered
Use releases. This requires some scripting to determine the latest release version, download and extract, and deploy to the location.
Use git pull. Requires installing git on machines that wouldn't otherwise need it.
Download the file regardless of changes. This would waste bandwidth if the file is large or bandwidth is limited.
The text was updated successfully, but these errors were encountered:
I would like to request
Last-Modified
HTTP header be added when displaying raw files. This allows wget and other utilities to download the file only if necessary.Is your feature request related to a problem? Please describe.
I would like to download (e.g. wget -N https://gogs/foo/bar/raw/master/somefile) iff the file was modified.
Describe the solution you'd like
Add the
Last-Modified
to HTTP headers with the latest time the file was modified in the specified branch:git log -1 --format="%ad" -- somefile
Describe alternatives you've considered
git pull
. Requires installing git on machines that wouldn't otherwise need it.The text was updated successfully, but these errors were encountered: