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

Support returning 206 Partial Content with serveStatic #3324

Open
kalempster opened this issue Aug 27, 2024 · 0 comments · May be fixed by #3461 or #3523
Open

Support returning 206 Partial Content with serveStatic #3324

kalempster opened this issue Aug 27, 2024 · 0 comments · May be fixed by #3461 or #3523
Labels
enhancement New feature or request.

Comments

@kalempster
Copy link

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.

@kalempster kalempster added the enhancement New feature or request. label Aug 27, 2024
@exoego exoego linked a pull request Sep 28, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Projects
None yet
1 participant