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

fileserver: Define request vars for tracking content served #5556

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on May 23, 2023

  1. Define request variables tracking content served by staticfiles

    Adds two variables for requests being handled as static files:
    
    - `handlers.file_server.path` - filesystem path as used by caddy to open file being served; may be an index file, a compressed proxy, or otherwise something other than the original content.
    - `handlers.file_server.info` - fs.FileInfo structure with basename and stat data.
    
    Per discussion in NixOS/nixpkgs#222354 (with thanks to @emilazy and @mholt)
    charles-dyfis-net committed May 23, 2023
    Configuration menu
    Copy the full SHA
    fe81f37 View commit details
    Browse the repository at this point in the history
  2. Avoid adding a Last-Modified header when mtime is 1

    Patch by Francis Lavoie, taken from github comment at caddyserver#5556 (comment); committed by Charles Duffy
    francislavoie authored and charles-dyfis-net committed May 23, 2023
    Configuration menu
    Copy the full SHA
    299c847 View commit details
    Browse the repository at this point in the history