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 Govuk-Use-Recommended-Links Vary response header and value header #1397

Merged
merged 1 commit into from
Jun 27, 2019

Conversation

karlbaker02
Copy link
Contributor

@karlbaker02 karlbaker02 commented Jun 26, 2019

This PR adds the Govuk-Use-Recommended-Links Vary response header and value header to responses generated by the ContentItemsController. This is to enable cache invalidation of previous responses if the incoming Govuk-Use-Recommended-Links request header changes state.


Visual regression results:
https://government-frontend-pr-1397.surge.sh/gallery.html

Component guide for this PR:
https://government-frontend-pr-1397.herokuapp.com/component-guide

@elliotcm elliotcm temporarily deployed to government-frontend-pr-1397 June 26, 2019 14:42 Inactive
@karlbaker02 karlbaker02 requested review from sihugh and barrucadu June 26, 2019 14:43
@elliotcm elliotcm temporarily deployed to government-frontend-pr-1397 June 26, 2019 15:16 Inactive
This commit adds the `Govuk-Use-Recommended-Links` Vary response header and value header to responses generated by the `ContentItemsController`. This is to enable cache invalidation of previous responses if the incoming `Govuk-Use-Recommended-Links` request header changes state.
@karlbaker02 karlbaker02 merged commit a15c693 into master Jun 27, 2019
@karlbaker02 karlbaker02 deleted the set-response-header-for-related-links branch June 27, 2019 10:01
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