Caching downloads?

Hi everyone,
I am not sure this can be done on Mac or i need to buy some hardware for this.
Say I download 1 file from Mac website before, it's 2GB and takes average 1 hour on my internet line.
When the 2nd person try to download the same file, it will auto download from my Mac server instead of the website? so i don't have to kill my bandwidth for their downloads.
Is that something that can be done? Any help? Thanks.

squid proxy, you can config it for transparent or authentication.I'm not sure if there is a mac port.
The proxy will cache websites locally it will also check if the requested website has changed and cashe the changes for local users,
There are plenty of websites with info on how to get it running on OSX

Similar Messages

  • Caching downloaded classes - again

    I created another thread for this problem, please refer to the original thread "caching downloaded classes".
    Here is the complete code:
    import java.net.*;
    import java.io.*;
    import java.lang.reflect.*;
    class Connect
    public static void main(String...a)
       ClassLoader loader = new NetworkClassLoader();
       try{
           Class<?> c;
           Method m;
           c = loader.loadClass("tryme1");
           m = c.getMethod("p", new Class[]{});
           m.invoke(null,new Object[]{});
          }catch(Throwable t){System.out.println(">>>>>>>> "+t);}
    public static byte[] downloadByteCodesFromURL( DataInputStream in) {
        ByteArrayOutputStream outStream = new ByteArrayOutputStream();
        while (true) {
               try {
                    outStream.write(in.readByte());
               catch (IOException e) { 
                      break; 
        return outStream.toByteArray();
    static class NetworkClassLoader extends ClassLoader
    public Class findClass(String name)
    Class c;
    try{
       URL u = new URL("http://localhost:80/"+name+".class");
      InputStream input = u.openStream();
      DataInputStream data = new DataInputStream(input);
      byte classBytes[] = downloadByteCodesFromURL(data);
      c = defineClass(name, classBytes, 0, classBytes.length);
    }catch(Throwable t){System.out.println(t);c = null;}
    return c;
    tryme1.p() calls tryme2.p() which calls tryme3.p(). tryme3.p() just displays a JFrame.
    Sorry, I have a problem with my browser, so I cannot apply code highlighting.
    My question is: will this code cause the JVM to cache the loaded classes?
    Thank you

    Upon your request, I marked this thread as ANSWERED, and I will continue using the original thread.
    But, PLEASE respond because as you can see from the original thread, you didn't answer my question for days, and I had said that I would create a new thread just to award you 10 points for your answer, since I couldn't do that in the original thread because I had already marked it answered for another user.
    I have been on this forum for many years before Oracle acquired Sun. In the old days, I used to get responds form more than one user the same day I post my problem. Now, the volume of posted threads and answers are much less. Are people losing interest in Java or in this forum or something else, I don't know !!!

  • I bought a ipod touch 3 i need help on this is there a youtube app that has a cach download to play youtube video's offline within the app if there is one can someone fill me some info on this matter

    i bought a ipod touch 3 i need help on this is there a youtube app that has a cach download to play youtube video's offline within the app if there is one can someone fill me some info on this matter

    You can only use apps that are compatible with your dvice and ios version.
    The secons gen ipod touch can only go to 4.2.1.
    If you are running 4.2.1 then you can only use apps that require 4.2.1 or lower.

  • Cache download gives error in IE

    Hi,
    My customer has created a virtual directory with
    Alias /LockheedDownload "D:\Lockheed_files"
    <Directory d:\Lockheed_files>
    #AllowOverride None
    Options FollowSymLinks Indexes Multiviews
    IndexOptions FoldersFirst FancyIndexing NameWidth=*
    IndexIgnore ..
    AuthType Basic
    Require valid-user
    </Directory>
    They have only HTTPS access to this site. The customer tries to download the file and is successful when Firefox browser is used. When trying the same in IE the following error is encountered:
    Internet Explorer was not able to open this internet site. The requested site is either not
    available or cannot be found. Please try again later.
    Internet Explorer cannot download <spreadsheet name> from ave.navair.navy.mil
    The file could not be written to the cache
    Please suggest what could be the issue.
    Thanks in advance.
    Regards,
    Sindhiya V.

    Hi Sindhiya.
    We ran into the same problem.
    It's a know problem with some IE versions.
    For more details, see:
    Oracle Metalink note. 301450.1 (It's for 9.0.4.2 but we experienced it on 10.1.2.0.2)
    Microsoft: http://support.microsoft.com/kb/323308/en-us
    We solved it by placing only the following in the Directory section.
    Header unset Pragma
    Greetings
    Jaap

  • Apple tv2 movie rental cache drops off and won't finish downloading (not related to internet connection)

    I'm having an issue with my apple tv2 when renting movies.  This isn't with home-sharing but just renting movies only with the apple tv.  We've done this with 10 or so movies up until the issue so it has worked in the past. 
    What happens is that the movie downloads to a certain point and then the cache bar goes immediately to the end of the progress bar like the whole movie is downloaded.  The movie will play to a certain point, say the 9 minute mark, and then the picture just freezes with no more sound but the progress bar tracker continues along like it's still playing.  This has happened on multiple movies now.
    We've spoken to support about this and tried a variety of troubleshooting ideas.  Unplugged, reset, restored, updated firmware, etc. with no luck.  The download will restart but freezes at the exact second that it did before while showing that the cached download is complete.  We've checked the internet connection with other devices and there's no connection problem at all.  Reset the router as well for good measure but no change. 
    I know we can try renting and downloading on the computer first and then sharing with the apple tv but I would prefer to know why it's not working on the apple tv itself. 
    Any ideas would be great. 
    Thanks

    Yeah, that's what we thought too so we got a refund (by using the report a problem link and explaining what happened) and tried a different movie with the same result.  Used the link again after the second movie didn't work and went through pretty much the same troubleshooting steps with them. 
    Basically the only solution offered so far has been to take it to a licensed apple retailer for them to take a look.

  • Auto download images cache

    Hi,
    is there any add-ons or software to auto-download filter by images as we browsing?
    i have tried cache images, down them all, cache viewer, cache download. its manual mechanicsm way to download.
    or add-ons that can save all link that extension images from console network to a notepad?
    regards

    Go to the '''''[https://addons.mozilla.org/en-US/firefox/ Mozilla Add-ons Web Page]''''' {web link}
    (There’s a lot of good stuff here) and search for what you want.

  • I keep getting error message (-50) on iTunes while downloading a movie

    Hey guys, while I was trying to redeem three of my digital copies from the Lord of the Rings movies, on iTunes I was able to download two of the movies but one of the movie keeps getting an error message stating "There was a problem downloading. _Movie Title_ There was an unknow error (-50)." Is there a solution this is? or a helpful apple article I can use?

    Try deleting the partial cached downloads in the iTunes media folder.
    That error is outlined here -> iTunes: Advanced iTunes Store troubleshooting
    "Error -50," "-5000," "8003," "8008," or "-42023"
    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while accessing iTunes Store:
    See iTunes 9: "One Moment Please" or "Error (-50)" message when accessing iTunes Store
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~)  refers to your Home directory.
    Windows  Vista:
  \Users\username\Music\iTunes\iTunes Media\Downloads\
    Windows  7:
  \Users\username\My Music\iTunes\iTunes Media\Downloads\
    Windows  XP:
  \Documents and Settings\username\My Documents\My  Music\iTunes\iTunes Media\Downloads\
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.

  • How to download files in jsp code {through save dialog}

    can you help me to download files in jsp code {through save dialog}
    i use the following code but it saves the jsp page instead of the downloaded file but with the name of the wanted file to be downloaded
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "no-cache");
    *** download file
    if((trans !=null)&&(trans.equals("download")) )
    response.setContentType ("application/x-download");
    response.setHeader ("Content-Disposition","attachment;filename=\""+fileName+"\"");
    %>
    <script>
    window.location.href=<%=gallerypath+fileName%>';
    </script>
    <%
    trans="";
    //System.out.print("download : "+fileName );
    //***************************************

    Can you try below code, It should work...
    <%
    String myFileName = request.getParameter("fileName");
    response.setContentType("application/octet-stream");
    response.setHeader("Content-Disposition", "attachment; filename=\"" + myFileName + "\"");
    String root = "D:/";
    InputStream in = null;
    ServletOutputStream outs = response.getOutputStream();
    try {
    in = new BufferedInputStream
    (new FileInputStream(root + myFileName));
    int ch;
    while ((ch = in.read()) != -1) {
    outs.print((char) ch);
    finally {
    if (in != null) in.close(); // very important
    outs.flush();
    outs.close();
    in.close();
    %>

  • Using system cache with AIR...

    Hi,
    I have been monitoring calls to download media from an AIR iOS app via Charles sniffer. What I am seeing is repeated downloads of the identical files, each and every time they are requested. Obviously, with large data lists, this represents a huge amount of data that shouldn't need to be redownloaded a second time. In this case, I have checked that the cache headers are "no-cache", so I will take that up with the server developers, but I am curious: do image downloads via AIR cache downloaded data using the system's browser cache or is it separate somehow?
    G

    You can cache read-only PL/SQL stored procedures in the DB Cache. I'm not sure about db built-in packages, but if they are read-only, should be ok.
    All DB Cache management functionality is available from DBA Studio. You can also use the supplied dbms_icache PL/SQL package to manage the cache. Refer to the DB Cache Concepts & Admin Guide for details.
    DB Cache is strictly a cache for read-only queries. All updates are passed to the origin db.

  • Apple TV - Deleting an incomplete direct HD Movie download - error (-50)

    Purchased 2 movies at the same time - HD Movie format direct to my Apple TV. One downloaded and watched OK, the other had a download error (-50) and every time I try re-downloading it ( on both the "resume" and "check for downloads"areas) , same error is evident - Seems to me the only way is to delete this incomplete and download again (hopefully I won't pay again?)
    How do I do this? any other solutions welcome?
    Tks
    Hopalong

    Take a look at this Apple article -> iTunes Store: "Error (-50)" when downloading purchased content
    You may have to delete the cached download from the location below.
    Windows XP and 2000:
    \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Media\Downloads\

  • Can N95 Firmware (21.0.016) Be Downloaded To PC

    Is there anyway, we can download the latest firmware update of Nokia N95 using DAP or some other downloading software, to our PC, and then update our N95. In this way, the slow speed internet users like me, can first download the latest firmware to PC in one go or in multi-sessions, and then update N95 easily.
    Thanks all

    Hi erehman
    I can well appreciate your situation when 115Mb of software needs to be downloaded but unfortunately although NSU caches download prior to installation, the operation cannot be deferred.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Quicktime Player in Snow Leopard cannot download Apple HD Trailers

    Hi!
    I've had this same problem since couple of months ago I bought this MBP 17". I cannot watch the movie trailers from Apple. They download normally the first 45seconds (1/4 movie) or so, but then it completely stalls. The download rate drops dramatically. What can I do?
    I've got 10.6.2 and all latest updates. Quicktime player is 10.0 (90.3.1). I can watch the same trailers with Quicktime on Windows. Also, curl is able to download the files easily. So, no problems in my network or the servers that I'm connecting to. Originally I thought that it might be a problem in the servers and I just figure that I'd try another day. Here is example with curl:
    $ curl -A "QuickTime/7.6.2" -O http://www.apple.com/movies/fox/avatar/avatar2009aug0820a-tsr_h1080p.mov
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed
    100 166M 100 166M 0 0 1101k 0 0:02:34 0:02:34 --:--:-- 1245k
    So, as you can see, it comes with nice 1Mb/s speed all the way. However, opening the same URL in Quicktime player only manages to load about 1/4 the file in the same time because it first starts with over 1Mb/s speed but then drops to about 150kb/s according to iStat. Basically I cannot watch any of the trailers.
    So, the problem is definitely in the Quicktime player in Snow Leopard. Can't find anything with Google for this. Please, does anybody know how to get Quicktime Player to download correctly? Thanks in advance to all hints!

    Anybody any ideas?
    Do you have access to a site having progressively playing/caching HD video files that play in the browser? It might be interesting to see if the problem was with the ISP. I recently switched to 25 mbps FIOS because my broadband ISP had thousands of correctable errors/second every time it rained and the ground became soaked. (Appears they had underground cable problems and were slow to update to above ground lines.) Finally, I just gave up and switched providers. In any case, in the test I previously ran, the playback data rate for the HD file as it played during cache downloading was in 8-9 mbps range.

  • HT3209 why does my movie rental download stop and reload just before it completes the download. I've tried 4 times now after waiting hours for the download. Ugh!

    why does my movie rental download stop and reload just before it completes the download. I've tried 4 times now after waiting hours for the download. Ugh!

    This Apple article might help ya out -> iTunes Store: "Error (-50)" when downloading purchased content
    Try following along with the article and deleting the cached downloads, then try again.

  • No matter what I do, I cannot get Firefox to run Java correctly. I've deleted the cache, etc., etc., but my school programs will not run on Firefox.

    Firefox (v. 18.0.1) will not run my school programs any more since the Java scare. It also is choking at running screencast-o-matic.
    And this is happening on both my computers not just one.
    I have emptied Java cache, emptied the browser caches, downloaded the latest Java, Reinstalled it. Cleared caches again, etc., etc., etc.
    Firefox will not run Java and I have to use IE which is the only browser that I have gotten the scripts to function so that I can use my programs.

    Been there done that. Actually I have even install a fresh Firefox on virgin win8 64-bit laptop (without synchronising to my firefox in general) with the absolutely latest Java - didn't help either. And my test page is not the only one, but as I did this myself I know exactly the contents.
    Since then my Firefox is in sync... well more or less as it seems it only sync some ways but that is another matter... but at least most of my stuff is back in place.
    What I know is that the egg.html takes forever to load, and that the java part never shows. I think that this goes for most Java places, but I do remember that it was not always the case. Right now even the Oracle test page can't find Java, and I know it could at some point. Reinstalling tells me I already got Java, so it is there, likewise it is active in the plugin window. But some parameter some where must have gone haywire.

  • Trouble Downloading Adobe After Effects CS5.5 Trial

    Every time I attempt to download the After Effects trial I get an "error 107". I can download other trials fine. It's just After Effects. I'm on a Mac with Snow Leopard 10.6.8.

    I would recommend completing solution 1 in Troubleshoot Adobe Download Assistant.  The solution provided there should help you clear out your cached downloaded files and allow for a successful download.

Maybe you are looking for