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
master
Debora Crescenzo 2 months ago
parent 2c548413a4
commit 22e602bf38

@ -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

Loading…
Cancel
Save