From 22e602bf38149b3b14c5261194c4416f92adf8e3 Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Thu, 7 Aug 2025 09:23:47 +0100 Subject: [PATCH] MT#63363 Prevent CSV download from breaking CDR table The CSV download and CDR table used identical requests, differing only in the Accept header. Browsers cached the CSV response, causing the table to fail to load. Disabled caching on the download request to avoid conflicts. Change-Id: I21c351d39a36dae787af2acdc1b0ef66c792f37c --- src/api/conversations.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/conversations.js b/src/api/conversations.js index b63064f7..1acb932d 100644 --- a/src/api/conversations.js +++ b/src/api/conversations.js @@ -62,7 +62,8 @@ export function downloadCsv (options) { resource: 'conversations', config: { headers: { - Accept: 'text/csv' + Accept: 'text/csv', + 'Cache-Control': 'no-cache, no-store, must-revalidate' }, params: { ...options