In our portal we turned our web cache end user performance monitoring.
Since then we have are facing with the issue of the following script gets appended to all the files being uploaded to Portal and this is corrupting the html or CSV files.
Could someone provide some workaround to solve this issue?
If I understood correctly, chronos.js is getting appended because you enabled end user performance monitoring. This is usually done for shorter periods for testing purposes. If you disable, it should work as usual.