■ ■ ■ ■ ■ ■
opencti-platform/opencti-graphql/src/http/httpPlatform.js
| skipped 147 lines |
148 | 148 | | const data = await loadFile(auth, file); |
149 | 149 | | res.setHeader('Content-disposition', contentDisposition(data.name, { type: 'inline' })); |
150 | 150 | | res.set({ 'Content-Security-Policy': 'sandbox' }); |
| 151 | + | res.set({ 'Cache-Control': 'no-cache' }); |
151 | 152 | | if (data.metaData.mimetype === 'text/html') { |
152 | 153 | | res.set({ 'Content-type': 'text/html; charset=utf-8' }); |
153 | 154 | | } else { |
| skipped 22 lines |
176 | 177 | | const converter = new showdown.Converter(); |
177 | 178 | | const html = converter.makeHtml(markDownData); |
178 | 179 | | res.set({ 'Content-Security-Policy': 'sandbox' }); |
| 180 | + | res.set({ 'Cache-Control': 'no-cache' }); |
179 | 181 | | res.send(html); |
180 | 182 | | } else { |
181 | 183 | | res.send('Unsupported file type'); |
| skipped 99 lines |