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

Return response headers for Explore AB test #2199

Merged
merged 1 commit into from
Aug 10, 2021
Merged

Return response headers for Explore AB test #2199

merged 1 commit into from
Aug 10, 2021

Conversation

sihugh
Copy link
Contributor

@sihugh sihugh commented Aug 10, 2021

At present we're only returning Vary response headers when we get a B variant. We want to do this all the time or it's confusing for Fastly to know how to cache.

I've added a test that ensures (using the with_variant helper) that the header is being set correctly, and also checks for analytics set up.

It's trickier to assert things about the template because slimmer's testing is harder to figure out right now, but it'd be useful to add these at some point too. :-)

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

@bevanloon bevanloon temporarily deployed to government-f-reponse-he-mrcwxj August 10, 2021 10:33 Inactive
@bevanloon bevanloon temporarily deployed to government-f-reponse-he-mrcwxj August 10, 2021 10:37 Inactive
At present we're only returning Vary response headers when we get a B variant.
We want to do this all the time or it's confusing for Fastly to know how to cache.

I've added a test that ensures (using the `with_variant` helper) that the header
is being set correctly, and also checks for analytics set up.

It's trickier to assert things about the template because slimmer's testing is
harder to figure out right now, but it'd be useful to add these at some point
too. :-)
@bevanloon bevanloon temporarily deployed to government-f-reponse-he-mrcwxj August 10, 2021 10:37 Inactive
Copy link
Contributor

@injms injms left a comment

Choose a reason for hiding this comment

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

Thank you!

@sihugh sihugh merged commit 3b3e6ad into main Aug 10, 2021
@sihugh sihugh deleted the reponse-headers branch August 10, 2021 10: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