caching special kind of Web request
- From: trstag75@xxxxxxxx
- Date: 30 Dec 2006 19:03:17 -0800
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
.
- Follow-Ups:
- Re: caching special kind of Web request
- From: Michael Heiming
- Re: caching special kind of Web request
- Prev by Date: Re: how to "join" LAN with plip link?
- Next by Date: Re: Upgrade all Linux Certification exams to test knowledge of PROGRAMMING!!
- Previous by thread: threading issue : SIGPIPE => SIG_IGN (writing to closed socket)
- Next by thread: Re: caching special kind of Web request
- Index(es):
Relevant Pages
|