apache - Does proxy have to load everything completely first before sending them back? -
i've been using proxy services, , want know details behind it, regarding speed , efficiency. consider following scenario:
there's mp3 file on server m, client wants download file, doesn't want expose himself, decides use proxy website download. mp3 request therefore send proxy server p first, proxy server mp3 client, here's question details:
does p have download entire mp3 file first before can pass client? if so, file downloaded twice (first on proxy server, on client's machine) , taking twice amount of time?
proxies operate in 2 modes: http , connect.
the connect mode blackbox protocols https or ftp. of data meaningless octet streams. because encrypted or unstructured files.
however, http, proxies pretty smart. 1 of things caching stuff. images , web page contents when downloading website in browser via proxy.moreover, octet streams under http, proxies show connect behavior, meaning open relay socket , let download content. in meanwhile, store locally, , if doesn't exceed size file cached.
the files forwarded, or relayed, or called rewrited. here sample config file shows squid configured forward youtube videos , not caching them.
another reason why downloading , forwarding not option doubling round trip time (rtt). counterintuitive when add rtt slows down http session.
Comments
Post a Comment