Skip to content

Commit

Permalink
no-cache if credentials passed (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf authored Apr 4, 2024
1 parent 5d77c1b commit cdd1cdc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server/controllers/account-transactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,9 @@ const accountTransactions = async (req, res) => {
switch (req.params.format) {
case 'txt':
case 'csv': {
if (authorization || apiKey || personalToken) {
res.append('Cache-Control', 'no-cache');
}
if (req.params.format === 'csv') {
res.append('Content-Type', `text/csv;charset=utf-8`);
} else {
Expand Down

0 comments on commit cdd1cdc

Please sign in to comment.