Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 3 of 3
  1. #1
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    11,285

    MySB image proxy caching, how does it work ?

    How does the caching in MySB image proxy work ?

    I'm asking because I need to know how much bandwidth it will take from my web server when a lot of applet instances requests an image through MySB image proxy.

    The scenario looks like this:
    1. I'm going to have a few images which is about 4MB size each on my web server
    2. The images are going to be refreshed every 30'th minute or so
    3. I'm using apache on my web server and the images will have static urls
    4. In an applet I'm going to retrieve the image through MySB image proxy about every 30'th minute if the applet (screen saver) is active.

    There are of course going to be many instances of the applet, one per Squeezebox it's installed on.

    Two questions:
    1.
    Will MySB image proxy make sure the image is only downloaded once or just a few times from my server during a 30 minute interval as long as the image haven't changed ? Even though there are a lot of applet instances requesting it.

    2.
    Will MySB be able to detect when the image has been updated and download a fresh copy the first time an applet requests it after it has been updated ?

    A sample image is this one:
    http://img340.imageshack.us/img340/1713/joinedm.png

    The reason it needs to be downloaded again every 30'th minute is that the daylight shadow and clouds are updated.
    Erland Isaksson (My homepage)
    Developer of many plugins/applets
    Starting with LMS 8.0 I no longer support my plugins/applets (see here for more information )

  2. #2
    Senior Member erland's Avatar
    Join Date
    Dec 2005
    Location
    Sweden
    Posts
    11,285
    If no one has time to answer this, is the code for the MySB image proxy available somewhere so I can look for myself ?
    Erland Isaksson (My homepage)
    Developer of many plugins/applets
    Starting with LMS 8.0 I no longer support my plugins/applets (see here for more information )

  3. #3
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    20,530

    MySB image proxy caching, how does it work ?

    Hmm... thought I had already answered this...

    > Will MySB image proxy make sure the image is only downloaded once or
    > just a few times from my server during a 30 minute interval as long as
    > the image haven't changed ? Even though there are a lot of applet
    > instances requesting it.


    The image proxy will use HTTP::Response->fresh_until (http://search.cpan.org/~gaas/libwww-...TP/Response.pm) to determine the time to live of the downloaded original image. Make sure you set your headers appropriately.

    > Will MySB be able to detect when the image has been updated and
    > download a fresh copy the first time an applet requests it after it has
    > been updated ?


    It will only check again once the the above condition is met.

    --

    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •