On 07/10/10 20:45, Henry C. wrote:
> Greets,
>
> I'm pondering the use of squid as a reverse proxy (for accelerated content delivery), but need
> to dynamically update online text advertisements which appear on the static pages delivered to
> users.
>
> The idea is to embed a token of sorts in the static page. Then, perhaps using a plugin or
> something, the token is dynamically updated to display the latest text advertisement/s.
>
> The advertisement content is provided by external servers, so the squid plugin/module will
> need to fetch the ads based on token arguments, etc.
>
> Has anyone done something similar or is there a plugin/module which can be used and/or hacked
> to achieve this?
>
> I believe Google does something similar for their ad delivery.
>
> Any comments or suggestions are welcome.
>
This is where AJAX and Web2.0 stuff actually has some use. A static
long-term cacheable page with known IDs spread around as needed.
Combined with ajax calls that load some things to fill the HTML
containers with.
NP: the only relation this has to squid is which objects are cacheable,
for how long and which are not. You get to decide on all that by
yourself though.
An alternative that has a lot more to do with Squid is ESI. Which Squid
caches the templates and various bits with their own caching times and
generates the final client pages as requested.
ESI in Squid has a few known bugs which prevent the more complex stuff
from working. But for simple uses like you ask it's happy and working in
some large production sites.
Amos
-- Please be using Current Stable Squid 2.7.STABLE9 or 3.1.8 Beta testers wanted for 3.2.0.2Received on Thu Oct 07 2010 - 08:34:16 MDT
This archive was generated by hypermail 2.2.0 : Thu Oct 07 2010 - 12:00:02 MDT