MikroTik Proxy Cache and HTML5 Videos

Good day! I’ve configured MikroTik Web proxy and I encountered issues caching HTML5 videos. One thing I noticed, the web server is returning a 206 Partial Content which does not save the video to the proxy cache. Downloading the video file directly using wget caches the video to the proxy cache but after using the browser(Safari/Chrome) again to stream the video using HTML5 video tag, MikroTik removes the video file from the proxy cache! Any ideas? Thanks!

Could you clarify what you mean by html5 videos? html5 specification allows for embedding of mp4, ogv and webm video files. they are regular video files which can be cached as any other large file.

Hi Normis! I’m talking about embedded videos using HTML5 video tag. Browsers like Chrome or Safari sends a byte-range GET request to the web server so the video data is sent to the browser through series of 206 Partial Content responses and MikroTik does not cache the video. If the video file is fetched using the regular GET request, the web server sends a 200 OK response with the full content, and the video file is cached. Is there a way to cache video files delivered as partial contents to the clients with MikroTik web proxy?

Thanks for clarification! I have no idea. If you have tested this, and found that it doesn’t cache them, we need to look into it, and make support for this type of file transfer. Send this request to support so it doesn’t get lost in the forum.

I’m having the exact same issue actually… looks like Partial-Content requests get cancelled by the proxy

On http://bb.things.im/ (end server being at the other end of a bonded tunnel at home over fiber, proxy ROS on a VM in a facility)
No way to access http://bb.things.im/timelapse/timelapse.mp4

Not that it’s urgent and needing a support ticket for me, but if you ever give it a look, it would be cool…