Re: [squid-users] Is it possible to ignore parts of or all parts of a query string?

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 13 Sep 2004 14:31:38 +0200 (CEST)

On Mon, 13 Sep 2004, Anders Nordby wrote:

> 1095077099.840 25 195.159.125.115 TCP_MISS/200 15910 GET
> http://ap.oasfile.aftenposten.no/ap/rosaindex/768x50_aftenposten.swf?clickTAG1=http%3A//primetime.ad.primetime.net/RealMedia/ads/click_lx.ads/www.aftenposten.no/forside/5278/Top1/primetime/ap_rosaindex_768x50_til_des04/rosaindex_2xclicktag.html/63333966376437333430336565663130%3F_RM_REDIR_%3Dhttp%3A//www.rosaindex.no/%3Frsat%3D3&clickTAG2=http%3A//primetime.ad.primetime.net/RealMedia/ads/click_lx.ads/www.aftenposten.no/forside/5278/Top1/primetime/ap_rosaindex_768x50_til_des04/rosaindex_2xclicktag.html/63333966376437333430336565663130%3Fhttp%3A//www.rosaindex.no/%3Fsaction%3DSOK%26fdsc%3DrsCompany%26rsat%3D2
> - DIRECT/127.0.0.1 application/x-shockwave-flash
>
> The actual file is just served statically from a local thttpd that has
> all the files.
>
> I suppose the Shockwave "program" (the swf file) uses the query
> parameters as a runtime configuration for what to do etc., so if only
> Squid could pass this on and still cache the file contents, that would
> be exactly what I want.
>
> Anyone have ideas about this? Is it doable? Running the swf's through
> Squid works, it's just that every file that has query parameters is not
> cached. :-(

If you know it is a static file and not dynamically generated you can use
a redirector helper to strip of the query while Squid forwards the
request. The query parameters is still available to the plugin, only not
to the requested server.

The problem is knowing..

Regards
Henrik
Received on Mon Sep 13 2004 - 06:31:43 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Oct 01 2004 - 12:00:02 MDT