Looks like mediacache uses the URL sent to the Origin server as one of the keys to determine if there is a cache hit when subsequent requests are made. The URL we send to the origin server, has the content identifier + the users access token. If a different user accesses the same content, the mediacache goes back to the origin server as the URL does not match (the access token of the users are different). Here is how the URL sent to Origin sever looks:
http/uploads/localhost_url/5320ddf00145932dd500008d/bigbuckbunny_750.mp4?signature=d392d5bd0fae5610fdb62d0e9bbfae54e3fa8f558e&access_token=I9TxzhDYUjcMEkfhbUH9H63HYrlcrc%3D9Hh_AVWMad2e1ce010b537837f93b618bd53188fd2318aaa3a543bf50ceca966fx6be883bed054e8cdf69e2351570482fe5bd6b0cd1e9225de87733ba41a4374588b39555398&referer=http://localhost/assets/jwplayer/jwplayer.flash.swf&test_code=abcd
Is there some configuration where I could specify the parts of the URL that must be ignored when doing a match of URL’s?
I would like the entry to look like:
http/uploads/localhost_url/5320ddf00145932dd500008d/bigbuckbunny_750.mp4"
If I cannot do this, mediacache is a just a proxy to my origin server, not really a cache.
Any suggestions?
Thanks.