[squid-users] Ignore part of a URL for caching

From: david robertson <dr_at_nevernet.com>
Date: Fri, 13 Aug 2010 11:17:05 -0400

Hello, I have a question concerning the caching of specific URLs:

I'm currently using squid in an accelerator config, and everything is
working perfectly fine. However I've just been given a request to
ignore part of a URL when it comes to caching. For example:
http://domain.com/v/subdir/subdir/file.js?variable1=variable1&variable2=variable2&variable3=variable3

What they're asking is for this URL to be cached, but ignore variable2
in the cache string. In other words, cache it as
http://domain.com/v/subdir/subdir/file.js?variable1=variable1&variable3=variable3

From what they told me, variable2 is dynamic and is different on every
hit. I have no idea why they do this, since it's exactly the same
page served every time. This obviously fills the cache with the exact
same content for thousands of different URLs.

We can do this with Akamai, have them not include part of the URL as
the cache key, but can this be done with squid?
Received on Fri Aug 13 2010 - 15:17:32 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 13 2010 - 12:00:02 MDT