Skip to content

Support returning 206 Partial Content with serveStatic #3324

Open
@kalempster

Description

@kalempster

What is the feature you are proposing?

Hi!

I'm developing an app that relies on serving images and video files. It's not for a huge amount of people so serving static files from the server is enough. However when serving a video file and returning it with the status 200 OK the browser will not allow seeking (or at least chromium based browsers, haven't really tested others).

I guess that serveStatic isn't meant to be used for media because you would typically use something like an S3 bucket to serve files but for development purposes saving files to the development machine is easier than setting up a data storage bucket. That being said returning the files (or at least media, could be specified by extension or content type) with 206 Partial Content would improve the development experience of hono.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions