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

Remove wrong cache control headers #991

Merged
merged 2 commits into from
Jun 8, 2023
Merged

Conversation

wizardlyhel
Copy link
Contributor

@wizardlyhel wizardlyhel commented Jun 7, 2023

Demo store is setting cache-control header when it is not suppose to. The demo store server renders cart information. Cart information is consider personalized content and should never be cached in any way.

Route ($locale).api.countries.tsx can have cache control header because it is an API endpoint that doesn't render the cart.

WHY are these changes introduced?

Fixes https://github.com/Shopify/hydrogen-internal/issues/61

WHAT is this pull request doing?

HOW to test your changes?

Post-merge steps

Checklist

  • I've read the Contributing Guidelines
  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've added a changeset if this PR contains user-facing or noteworthy changes
  • I've added tests to cover my changes
  • I've added or updated the documentation

@wizardlyhel wizardlyhel merged commit 2aaa726 into 2023-04 Jun 8, 2023
9 checks passed
@wizardlyhel wizardlyhel deleted the hl-fix-cache-control branch June 8, 2023 16:26
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

3 participants