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

[next] Add Important Headers to Avoid Users Overriding Cache Headers #5452

Merged
merged 5 commits into from Dec 1, 2020

Conversation

dav-is
Copy link
Contributor

@dav-is dav-is commented Nov 20, 2020

We want to ensure users cannot override Next.js' cache-control headers

Related Issues

https://app.clubhouse.io/vercel/story/14921/add-important-headers-to-routes
https://app.clubhouse.io/vercel/story/15528/add-important-to-cache-control-headers-in-next-js

Tests

  • The code changed/added as part of this PR has been covered with tests
  • All tests pass locally with yarn test-unit

Code Review

  • This PR has a concise title and thorough description useful to a reviewer
  • Issue from task tracker has a link to this PR

Fixes: #5452

@styfle styfle changed the title Add Important Headers to Next.js to Avoid Users Overriding Cache Headers [next] Add Important Headers to Avoid Users Overriding Cache Headers Nov 20, 2020
styfle
styfle previously approved these changes Nov 20, 2020
@dav-is dav-is added the semver: minor PR contains new features label Nov 20, 2020
ijjk
ijjk previously approved these changes Nov 20, 2020
Copy link
Member

@ijjk ijjk left a comment

Choose a reason for hiding this comment

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

LGTM, revalidate tests should pass after test wait times are bumped in #5454

Timer
Timer previously requested changes Nov 26, 2020
Copy link
Member

@Timer Timer left a comment

Choose a reason for hiding this comment

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

We need to add a test case for this

@ijjk ijjk dismissed stale reviews from ghost , styfle, and themself via b5f926d December 1, 2020 20:58
@ijjk ijjk requested a review from styfle December 1, 2020 21:03
@kodiakhq kodiakhq bot merged commit cf69c23 into master Dec 1, 2020
@kodiakhq kodiakhq bot deleted the next-important-headers branch December 1, 2020 22:08
ofhouse pushed a commit to milliHQ/terraform-aws-next-js that referenced this pull request Mar 13, 2021
…(#5452)

We want to ensure users cannot override Next.js' cache-control headers

### Related Issues

https://app.clubhouse.io/vercel/story/14921/add-important-headers-to-routes
https://app.clubhouse.io/vercel/story/15528/add-important-to-cache-control-headers-in-next-js

#### Tests

- [x] The code changed/added as part of this PR has been covered with tests
- [x] All tests pass locally with `yarn test-unit`

#### Code Review

- [x] This PR has a concise title and thorough description useful to a reviewer
- [x] Issue from task tracker has a link to this PR


Fixes: vercel/vercel#5452
onlinedev0808 added a commit to onlinedev0808/terrafirn-aws-next.js that referenced this pull request Mar 1, 2023
…(#5452)

We want to ensure users cannot override Next.js' cache-control headers

### Related Issues

https://app.clubhouse.io/vercel/story/14921/add-important-headers-to-routes
https://app.clubhouse.io/vercel/story/15528/add-important-to-cache-control-headers-in-next-js

#### Tests

- [x] The code changed/added as part of this PR has been covered with tests
- [x] All tests pass locally with `yarn test-unit`

#### Code Review

- [x] This PR has a concise title and thorough description useful to a reviewer
- [x] Issue from task tracker has a link to this PR


Fixes: vercel/vercel#5452
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: routing-utils semver: minor PR contains new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants