Skip to content

Static files linked from HTML not working  #68

@olaven

Description

@olaven

I am serving HTML statically, and the HTML includes a script-tag, e.g.:
<script src="./client.js" type="module"></script>

./client.js is a file in the public directory, so my understanding is that this should work.
However, Dinatra handles this as a standard response, not a static response. Because of this,
appropriate content-type header is not set, and the browser does not load the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions