{"id":15020847,"url":"https://github.com/ianks/early_hints_header","last_synced_at":"2025-08-17T17:33:06.980Z","repository":{"id":39670814,"uuid":"264067425","full_name":"ianks/early_hints_header","owner":"ianks","description":"An early hints Ruby / Rack middleware which just sets Link headers (i.e. for nginx http2_push_preload)","archived":false,"fork":false,"pushed_at":"2023-03-16T09:58:09.000Z","size":19,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-15T03:42:13.297Z","etag":null,"topics":["http2-push","nginx","rack","rack-middleware","ruby"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianks.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T01:37:40.000Z","updated_at":"2024-10-17T10:36:34.000Z","dependencies_parsed_at":"2024-09-23T07:01:36.933Z","dependency_job_id":null,"html_url":"https://github.com/ianks/early_hints_header","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.125,"last_synced_commit":"935725ac0c2c4b04245e1592b1a605dd6f9674cb"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianks%2Fearly_hints_header","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianks%2Fearly_hints_header/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianks%2Fearly_hints_header/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianks%2Fearly_hints_header/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianks","download_url":"https://codeload.github.com/ianks/early_hints_header/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229827696,"owners_count":18130390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http2-push","nginx","rack","rack-middleware","ruby"],"created_at":"2024-09-24T19:55:45.759Z","updated_at":"2024-12-17T16:45:25.326Z","avatar_url":"https://github.com/ianks.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EarlyHintsHeader\n\n![Ruby](https://github.com/ianks/early_hints_header/workflows/Ruby/badge.svg)\n\nAn early hints Ruby / Rack middleware which just sets Link headers.\n\nThis means you can use early hints _without_ having to use the HTTP 103\nstatus code, i.e. [nginx's\nhttp2_push_preload](https://www.nginx.com/blog/nginx-1-13-9-http2-server-push/#automatic-push).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'early_hints_header'\ngem 'fast_woothee' # optional: for blocking broken client like iOS\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install early_hints_header\n\n## Usage\n\n```ruby\n# In config.ru\n\nrequire \"early_hints_header/middleware\"\n\nuse EarlyHintsHeader::Middleware\n```\n\n## Caveats\n\nWhen using HTTP2 push, be aware of potential clients that do not properly\nsupport preloading. For example, [certain older Safari\nversions](https://jakearchibald.com/2017/h2-push-tougher-than-i-thought/) do\nnot work properly. This gem will handle that if you have\n[fast_woothee](https://github.com/ianks/fast_woothee) installed.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then,\nrun `rake spec` to run the tests. You can also run `bin/console` for an\ninteractive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\nTo release a new version, update the version number in `version.rb`, and then\nrun `bundle exec rake release`, which will create a git tag for the version,\npush git commits and tags, and push the `.gem` file to\n[rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at\nhttps://github.com/ianks/early_hints_header. This project is intended to\nbe a safe, welcoming space for collaboration, and contributors are expected\nto adhere to the [code of\nconduct](https://github.com/ianks/early_hints_header/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT\nLicense](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the EarlyHintsHeader project's codebases, issue\ntrackers, chat rooms and mailing lists is expected to follow the [code of\nconduct](https://github.com/ianks/early_hints_header/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianks%2Fearly_hints_header","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianks%2Fearly_hints_header","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianks%2Fearly_hints_header/lists"}