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: Support precompressed files without base files #5745

Closed
wants to merge 3 commits into from

Commits on Aug 14, 2023

  1. 1. Added a new bool value to the FileServer Struct called PreferPreco…

    …mpressed
    
    2. Start accepting prefer_precompressed subdirective under the fileserver directive
    singhalkarun committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    d1ef85b View commit details
    Browse the repository at this point in the history
  2. 1. If PreCompressed is enabed on fileserver, ignore checking the exis…

    …tence of the original file and serve encoded file as per the accepted encoding if available, else return 404.
    
     To Do Next:
    
    If the file is not available as per accepted encoding, try to decompress the encoded file to original file and serve, if not able to, return 404.
    singhalkarun committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    029a791 View commit details
    Browse the repository at this point in the history
  3. 1. Refactored to use a info variable instead of 2 variables info and …

    …compressedInfo
    
    2. Fixed an issue when the PreCompressed parameter is enabled and the original file is also present, need to fetch the FileInfo such that it can be used in ServeContent.
    singhalkarun committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    4e97c97 View commit details
    Browse the repository at this point in the history