Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update for complex add to cart, fix nvidia (#108)
- Loading branch information
1 parent
722eaf3
commit 3ea146d
Showing
4 changed files
with
96 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Generates unique URL param to prevent cached responses (similar to jQuery that Nvidia uses) | ||
* | ||
* @return string in format &=1111111111111 (time since epoch in ms) | ||
*/ | ||
export function timestampUrlParameter(): string { | ||
return `&_=${Date.now()}`; | ||
} |