Combining proxy_store and proxy_cache values !!
arut at nginx.com
Wed Aug 27 17:18:28 UTC 2014
On 27 Aug 2014, at 16:21, shahzaib shahzaib <shahzaib.cb at gmail.com> wrote:
> I am using proxy_store on edge server to replicate mp4 files from origin server when user request for the video file. The reason i am not using proxy_cache is, when user seeks through the mp4 video,proxy_cache keeps on downloading whole video file with different Keys if multiple users accessing single video with different cache Keys i.e
The mp4 module does not work with the nginx cache.
You can either proxy the mp4 module output from the backend
or serve the entire cached mp4 file without using the mp4 module.
> The problem with proxy_store is, its not much flexible as proxy_cache has different variables to adjust and most useful is proxy_cache_min_use.
> I need proxy_store to check for requested file and if file is requested first time it should be serve from origin server instead of downloading the whole file. Can i use some option like proxy_cache_min_use for proxy_store ? If not, is there some other way for it ?
When you use proxy_cache_min_uses an empty cache entry is created
in memory which holds the counter. With proxy_store there’s nothing
like that. Nginx just saves the input to a file. It looks like
there’s no easy way to do what you want.
More information about the nginx