Search squid archive

Ignore part of a URL for caching

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux