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
Serve static for both GET and HEAD requests breaks server #3
Comments
Thanks for reporting the issue. I will be looking for a solution and will fix it as soon as possible. |
Any ideas where to look? Maybe i can help... |
I think it's important to see between lines 218 and 238 of the server.ts file, that's where there might be a problem. |
No activity |
Well, I couldn't figure out what is the problem, but it persists, try it yourself:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, first of all, great work on faster, love it so far!
I'm running into an issue when trying to handle HEAD requests (using them from the frontend to see if i need to fetch the entire file or if i can used the cached version in the browser, e.g. to check if the file was changed) for static files while also serving them statically via GET requests, i have this (played around with the order of the blocks, but no change):
when the
server.head()
handler is present, the HEAD requests work fine, but the GET requests stop working and stay as (pending) forever in the network monitor (browser side), if i remove it, HEAD requests return a 404 and the GET requests work as expected. I'm not sure where the issue is, i don't get errors on the server side and neither in the browser, the GET request is just stuck. Any ideas why that could be? maybe using the same middleware twice? but i checked the code, don't see why that would be an issue.The text was updated successfully, but these errors were encountered: