Server huge cached files

55 views
Skip to first unread message

Abbas Yazdanpanah

unread,
Mar 31, 2016, 5:57:25 AM3/31/16
to goproxy-dev
Hi everyone!

First of all thank you for great goproxy package, it is really helped me to develop a simple cache application. I'm somehow a noob golang developer, so please help me with this issue.

I have a big problem, I could not server big cached files, for example files with size around 4GB. First I thought that if I create a modified version of NewResponse that accepts io.ReadCloser it will serve the content but the problem seems to be far deeper that this. It also seems that I must serve packets with "Content-Range" header (regarding to https://golang.org/src/net/http/fs.go) but I don't have any clue how this can be done in goproxy.

So please give me clues about how this can be done and what I must do in order to achieve this.

Warml regards,
Abbas.

Andreas Westberg

unread,
Apr 17, 2016, 1:02:40 PM4/17/16
to goproxy-dev
Hello,

I'm not from goproxy dev team but I know that what Chunked Transfer Coding is used to "stream" your file.
See: 

Reply all
Reply to author
Forward
0 new messages