Skip to content

WebServer.serveStatic: index.html.gz as default doesn't work (while index.html does) #6984

Closed
@JasperHorn

Description

@JasperHorn

Apologies for forgoing the prescribed format. I noticed this problem while reading the code and though I did test it, that does make things like hardware information irrelevant. I decided to cut out that noise instead. (The issue that this is related to also didn't follow that format...)


Using index.html instead of index.htm for the "folder" is supported since 9f2cfb8

At that time, the lookup order became:

  1. index.htm
  2. index.html
  3. index.html.gz

As #6792 pointed out, this broke support for index.htm.gz and this was changed in 6768116 . The lookup order now is:

  1. index.htm
  2. index.html
  3. index.htm.gz

However, this has removed support for using index.html.gz completely. I think the lookup order should include four items:

  1. index.htm
  2. index.html
  3. index.htm.gz
  4. index.html.gz

(Perhaps with 2 & 3 reversed.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions