Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the LastModified header for raw files #18356

Merged
merged 12 commits into from
May 9, 2022

Commits on Jan 22, 2022

  1. Set the LastModified header for raw files

    Although the use of LastModified dates for caching of git objects should be
    discouraged (as it is not native to git - and there are a LOT of ways this
    could be incorrect) - LastModified dates can be a helpful somewhat more human
    way of caching for simple cases.
    
    This PR adds this header and handles the If-Modified-Since header to the /raw/
    routes.
    
    Fix go-gitea#18354
    
    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Jan 22, 2022
    Configuration menu
    Copy the full SHA
    fd45e69 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dc59e29 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2022

  1. as per review

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    3a9c8c8 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'zeripath/fix-18354-set-last-modified-he…

    …ader-raw' into fix-18354-set-last-modified-header-raw
    zeripath committed Jan 23, 2022
    Configuration menu
    Copy the full SHA
    6eec45c View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2022

  1. Configuration menu
    Copy the full SHA
    f8fa93d View commit details
    Browse the repository at this point in the history
  2. Ensure that If-None-Match overrides If-Modified-Since

    Signed-off-by: Andrew Thornton <art27@cantab.net>
    zeripath committed Jan 24, 2022
    Configuration menu
    Copy the full SHA
    ff236a5 View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2022

  1. Configuration menu
    Copy the full SHA
    bc6dc02 View commit details
    Browse the repository at this point in the history

Commits on Feb 11, 2022

  1. Configuration menu
    Copy the full SHA
    71dd4b0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c3b54e5 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2022

  1. Configuration menu
    Copy the full SHA
    a70c6f9 View commit details
    Browse the repository at this point in the history
  2. add 404 (back)

    6543 committed May 9, 2022
    Configuration menu
    Copy the full SHA
    2d60ac3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8d6b615 View commit details
    Browse the repository at this point in the history