Forum Discussion
jesspoemape
Oct 16, 2023Copper Contributor
setCachePolicy not disabling cache on link unfurl
Hello. I'm building a bot in node.js, and I want to disable caching of adaptive cards on link unfurl. According to the docs, it should be disabled if I include the setCachePolicy like so: return {...
Sayali-MSFT
Microsoft
Nov 10, 2023jesspoemape -We have tried with the below code; it is working fine at our end.
Could you please try to use the below code and confirm the same?
{
"composeExtension": {
"type": "result",
"attachmentLayout": "list",
"attachments": [
{
"preview": {
"contentType": "application/vnd.microsoft.card.adaptive",
"content": previewPayload
},
"contentType": "application/vnd.microsoft.card.adaptive",
"content": cardPayload
}
],
"suggestedActions": {
"actions": [
{
"type": "setCachePolicy",
"value": "{\"type\":\"no-cache\"}"
}
]
}
}
}