Skip to content

Conversation

@markbrocato
Copy link
Contributor

@markbrocato markbrocato commented Jun 17, 2020

React Storefront adds a ?v parameter to all fetch and XHR requests to ensure that stale API responses are not served from the browser cache. This parameter should not be added to request to 3rd parties, because some 3rd parties such as Firebase will not accept unknown query parameters.

@markbrocato markbrocato requested a review from dijs June 17, 2020 09:22
@markbrocato markbrocato changed the title Fix add version same origin addVersion should only add __v__ param to same-origin requests Jun 17, 2020
Copy link
Contributor

@dijs dijs left a comment

Choose a reason for hiding this comment

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

Left a few questions

@markbrocato markbrocato merged commit af58852 into master Jun 22, 2020
@markbrocato markbrocato deleted the fix-addVersion-same-origin branch June 22, 2020 09:44
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