mbogoevici/ticket-monster-1 — comment on commit 8ccf892f4aaa05db7af2ffdf536a5c61ab4ebe58
File:  line 0
By pmuir:

This isn't right at all.

The idea is that the media item is cached with a call to getPath(mediaItem) when you want to create the path to the cached item, and then rendered by the REST service. For example, using some el:

This will generate the correct URL for the REST service, caching the image along the way.