Add caching for diff file rendering
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=450993) </details> <!--IssueSummary end--> We should consider caching rendered diff file's HTML. Either separately or the whole batch of the rendered diffs (for efficiency). We should decide what exactly we want to cache, how and when to cache it and where to store that cache. The diffs HTML should be client-independent before we can cache it. We need to separate static and dynamic parts of the diff UI in order to achieve that.
issue