'How to add more than one twitter card per page?
I am looking for a way to share two different Twitter cards (with different thumbnails) from the same page.
Button A pressed -> one thumbnail, button B pressed -> different thumbnail.
Changing meta data alone with JavaScript before linking page to Twitter did not work because of browser cache on Twitter.
Tried to change twitter:image content with ?randominfo at the end of the link to change the thumbnail, did not do the trick.
Nor did this:
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|