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 data to ResponseCreated event #4569

Merged
merged 1 commit into from
Oct 25, 2021
Merged

Add data to ResponseCreated event #4569

merged 1 commit into from
Oct 25, 2021

Conversation

jbreuer95
Copy link
Contributor

@jbreuer95 jbreuer95 commented Oct 25, 2021

The ResponseCreated is great for adding headers. We use it to add a header that makes Varnish cache pages. Only for our usecase we need to exempt some pages based on a switch. Having access to the Page that the response was created for allows for conditionally adding headers like this.

@jasonvarga jasonvarga merged commit 3c1fac4 into statamic:3.2 Oct 25, 2021
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.

2 participants