I'm using jsreport to render reports in web application. The templates for the reports are saved in a database, the templates along with the report data is sent to jsreport studio via axios request.
The problem is that whenever I update the templates in my database, the updates does not reflect the rendering. Instead of rendering the updated templates, i still render the old version.
I have ensured that I was sending the correct template to the server, and I added version checks on the templates to ensure I had the right version before sending it to the server, I checked old forum posts and it looked like it could have been a cache problem so I disabled that, but it did not change anything. The only time the template updated was when I changed my configuration and had to remake the server.
my axios request goes something like this:
const response = await axios({
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/pdf'
},
url: JSREPORT_URL,
data: requestData,
maxBodyLength: Infinity,
responseType: 'arraybuffer',
timeout: 240000
});
Do you possible have any other solution to this problem?
Thanks in advance for your help