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

Add a user agent header for all requests #184

Merged
merged 3 commits into from
Feb 22, 2017
Merged

Add a user agent header for all requests #184

merged 3 commits into from
Feb 22, 2017

Conversation

tijmenb
Copy link
Contributor

@tijmenb tijmenb commented Feb 22, 2017

Related to #183, this adds a User-Agent header to all requests to static, just like gds-api-adapters does. This will make it easier for us to see where requests come from.

https://trello.com/c/D9HmkJwI

This will make it easier to add better logging.
Even if it's not set (and it's always set) an empty value is fine to
send.
This will make it easier to see who is making the requests.

The format for the UA is consistent with gds-api-adapters.
Copy link
Contributor

@carvil carvil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@tijmenb tijmenb merged commit 4442201 into master Feb 22, 2017
@tijmenb tijmenb deleted the add-user-agent branch February 22, 2017 13:53
tijmenb added a commit to alphagov/smart-answers that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183
tijmenb added a commit to alphagov/collections that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to
`static`.
tijmenb added a commit to alphagov/smart-answers that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183
tijmenb added a commit to alphagov/calculators that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/calculators that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/calendars that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/smart-answers that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183
tijmenb added a commit to alphagov/calendars that referenced this pull request Feb 22, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/multipage-frontend that referenced this pull request Feb 23, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/licence-finder that referenced this pull request Feb 23, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/licence-finder that referenced this pull request Feb 23, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/multipage-frontend that referenced this pull request Feb 23, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/feedback that referenced this pull request Feb 23, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will prevent this app from making many needless requests to `static`.

https://trello.com/c/D9HmkJwI
tijmenb added a commit to alphagov/frontend that referenced this pull request Feb 23, 2017
This bumps slimmer to make it use the rails cache and send a user agent:

- alphagov/slimmer#184
- alphagov/slimmer#183

It will probably not have much effect on this app, because the cache is
configured correctly here.

https://trello.com/c/D9HmkJwI
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.

None yet

2 participants