Open bram-atmire opened 2 weeks ago
This is affecting both 7.6.x maintenance, as well as DSpace 8
Good catch, @bram-atmire! I see it on our DSpace 7.6.1 instance too, though in Firefox at least each of the second requests are cached and take 0ms.
you're right Alan, I can also see that in Chrome, if you have "Disable Cache" DISABLED (so if caching is ON) the duplicate requests are not visible.
Nevertheless, we likely still better clean up the use of ngVars anyway.
Describe the bug On pages where thumbnails are requested, Angular sends 2 requests to retrieve the bitstream instead of one.
Cause & solution approach
This is likely caused by the use of ngVars here and here
One path to address this would be to replace the occurences with their values.
To Reproduce Steps to reproduce the behavior:
Expected behavior There should be 2 content requests, one per file
Observed behavior There are 2 requests per file
Related work Link to any related tickets or PRs here.