Skip to content

Conversation

powerivq
Copy link
Collaborator

@powerivq powerivq commented Jul 22, 2024

Gmail team has found out that this endpoint is returning inconsistent Access-Control-Allow-Origin header. It could be because it enables public cache. The problem is that this header depends on the origin header and therefore it cannot properly be cached without messing the response header up. This PR disables the cache on the Netlify. Given it is only a demo, I do not expect this to become a significant cost problem.

@zhangsu

@powerivq powerivq requested a review from erwinmombay July 22, 2024 17:42
@powerivq powerivq merged commit 97598e8 into main Jul 23, 2024
@powerivq powerivq deleted the fix-cart-cache branch July 23, 2024 19:09
@powerivq powerivq self-assigned this Jul 25, 2024
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