On Aug 3, 2013, at 12:16 PM, Sebastian Annies <sebastian.ann...@castlabs.com> wrote:
> Hi, > > > > we have huge files that will be slightly different for most users - they > are 1 to 8GB and only 1k differs - so we want to change them with a > transformation. Unfortunately the null-transform plugin is of no help since > it transforms the content coming from the origin server and NOT the content > that is going to the browser of the final user. Is there anywhere any > example on doing transforms at this place? > > > > Basically it’s like this: > > > > http://ats/huge_video_a?userspecific=abc > > http://ats/huge_video_a?userspecific=xyz > > > > and of course we only want to store the untransformed ‘huge_video_a’ once > and perform the transformation (inserting the user specific info) on every > delivery. Where to start? Any hints? I'm not very familiar with transform, but AFAICS you get to do TS_HTTP_REQUEST_TRANSFORM_HOOK or TS_HTTP_RESPONSE_TRANSFORM_HOOK, and the cache always stores the transformed response. Maybe Brian (CC'ed) has some other ideas ... J