# VOD http origin download files when not here

**URL:** https://community.wowza.com/t/vod-http-origin-download-files-when-not-here/34523
**Category:** Wowza Streaming Engine
**Created:** [March 27, 2015, 8:09pm UTC](https://community.wowza.com/t/vod-http-origin-download-files-when-not-here/34523 "2015-03-27T20:09:58Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![damien\_wetzel](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@damien\_wetzel](https://community.wowza.com/u/damien_wetzel)
#### Post date: [March 27, 2015, 8:09pm UTC](https://community.wowza.com/t/vod-http-origin-download-files-when-not-here/34523/1 "2015-03-27T20:09:58Z")

</div>

hi

I have a wowza instance configured as a VOD http origin.

i would like to be able to fetch the requested files by the CDN on a other place via http

when they are not here in order to reencode them properly before they are available

on the wowza VOD http origin. is that doable somehow ?

Damien,

---

<div class="post-metadata">

### Author: ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)
#### Post date: [March 27, 2015, 10:42pm UTC](https://community.wowza.com/t/vod-http-origin-download-files-when-not-here/34523/2 "2015-03-27T22:42:48Z")

</div>

Hi Damien,

From the previous description I am not able to precisely understand what is the call flow you wish to implement.

Do you want to request the VOD files that are located on a different HTTP server (CDN) in case the requested files are not stored locally on your Wowza server instance?

In this case, you can use the [Media Cache functionality](https://www.wowza.com/docs/how-to-scale-video-on-demand-streaming-with-media-cache) available with Wowza to retrieve content from a remote location, cache it locally, and deliver it through your VOD http origin application.

For implementing this scenario, you will need to use the “[MediaCacheLocalFirstRandomAccessReader](https://www.wowza.com/docs/media-cache-implementation-that-will-first-try-to-access-content-locally-before-getting-it-from-a-remote-source-mediacachelocalcontent%28MediaCacheLocalFirstRandomAccessReader%29)” module that will look for the requested content locally, and if it is not available it will try to fetch it using the Media Cache feature.

I hope it helps.

Zoran
