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

Close #783 Warn on action_dispatch.x_sendfile_header #795

Merged
merged 3 commits into from
Aug 20, 2018

Conversation

schneems
Copy link
Contributor

When serving files if the action_dispatch.x_sendfile_header is set then it is essentially saying “i don’t need to serve this asset, let nginx or apache do it for me”. The problem is…on heroku most people aren’t using apache or nginx so this causes a silent failure that is hard to debug.

This warning will hopefully help people identify their mistake earlier.

@schneems schneems force-pushed the schneems/x-sendfile branch 8 times, most recently from 43b484c to 7c9a812 Compare August 16, 2018 16:44
When serving files if the `action_dispatch.x_sendfile_header` is set then it is essentially saying “i don’t need to serve this asset, let nginx or apache do it for me”. The problem is…on heroku most people aren’t using apache or nginx so this causes a silent failure that is hard to debug.

This warning will hopefully help people identify their mistake earlier.
@schneems schneems merged commit e1ff6c6 into master Aug 20, 2018
@edmorley edmorley deleted the schneems/x-sendfile branch August 27, 2020 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants