caching special kind of Web request



Hi everybody,

I've got a particular (?) case here and I'd like to
know if any program (Squid?) can be used in such
a situation. The answer may simply be "yes, of
course", but before making changes to the setup
here I'd like to be sure...

Here's the setup: a webserver, which I've got no
control at all on, dynamically serves webpages to
many machines in our LAN (the people here are
using a special 'webapp'). The webserver itself
is not on the LAN.

The machines on the LAN typically 'refresh' some
elements on their webpage every minute or so and
those machines all issue those request simultaneously
(or nearly simultaneously).

When a 'new' request is made, it is impossible that
the resource are cached: the webserver just
dynamically generated them.

Here's an example :

at t0 machine A asks for "dynamic18748.jpg"
(that the server just created)

(typically, in our case, 'dynamic18748.jpg' will
be quite big... and there'll be more than one
picture asked for)

at t0 + 100 ms machine B and C asks for that same "dynamic18748.jpg"

at t0 + 150 ms machine D asks for that same "dynamic18748.jpg"

etc.

Does a caching proxy realize, when B, C, D (and all the
others) ask for "dynamic18748.jpg" that the file is "being
transferred" or does the proxy start a new (unnecessary)
request to the webserver?

I'm mostly (if not 'only') interested in caching HTTP GET
request for pictures... It doesn't have to be "transparent",
the clients here on the LAN can be configured to access
a proxy.

I'd like to cache all these pictures for a few minutes, then
discard them after a few minutes (I mean, I would care
about keeping them for a few hours, but they'd serve no
purpose). Due to how the setup/webapp works in our case,
each of these pictures would be accessed at least one by
every machine in our LAN (more or less), which is why I'd
like them to be cached even though all the request will be
'simultaneous'.

My question may boil down to...

When does a 'web proxy cache' (like Squid) start caching?

As soon as the resource as been fully transferred to the proxy
or as soon as the resource is starting to be transferred to the proxy
(which in my case makes a lot of difference)?

I'm sorry if it's not very clear: english is not my first language.

Any explanations are very welcome,

Tristan

.



Relevant Pages

  • Re: bittorrent proxy
    ... LAN that is always on and has a huge disk. ... requests from any user on my LAN and carry out the request for them. ... IP-forward to *all* the machines on my LAN, and taking turns gets to be ... With a proxy, I'd just have to IP-forward to the proxy (or ...
    (Debian-User)
  • Re: bittorrent proxy
    ... LAN that is always on and has a huge disk. ... requests from any user on my LAN and carry out the request for them. ... IP-forward to *all* the machines on my LAN, and taking turns gets to be ... With a proxy, I'd just have to IP-forward to the proxy (or ...
    (Debian-User)
  • Re: problem in configuring squid transparent proxy on FC3
    ... I am trying to configure Squid Transparent Proxy on FC3. ... The FC3 machines has got 2 lan cards ... But when I gave the below command to list the iptables rules there was ...
    (Fedora)
  • Re: Updating Web References in .NET 2003
    ... when I go to update the web service it doesn't update it at all. ... service does not regenerate the proxy class with the new settings. ... > from some other development machines? ... >> output parameter becomes the return type and the new output parameter ...
    (microsoft.public.dotnet.framework.webservices)
  • [Full-disclosure] Evading URL Filtering(websense) software configured in Transparent (or Sniffing) m
    ... Evading URL Filtering software configured in Transparent mode, ... but Websense has been informed in December ... They also had a copy of this proxy script for over ... Websense looks at this request and answers yes or no ...
    (Full-Disclosure)