trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leif Hedstrom <>
Subject Re: how to cache object with different urls (with question mark) just once?
Date Mon, 21 Mar 2011 17:46:33 GMT
On 03/21/2011 11:13 AM, Conan wrote:
> hi users,
> I have a object to cache. This object's url is like 
> "". The parameters after question 
> mark(?) is different and dynamic, but the object is identical so it's 
> better to cache only one copy of the object.
> What I except is: ATS ignore the parameters in url and serve the 
> object (if cached), or pass the complete url to original server if the 
> object is not cached.
> When I enable "proxy.config.http.cache_urls_that_look_dynamic", it 
> seemed ATS treated these urls as different objects. If I disable it, 
> ATS did not cache any urls with question mark.
> Any suggestions? Or what kind of plugin could I write to support that?

You'd have to write a plugin that calculates a different cache key, 
based on your "normalization" rules. In your case, presumably only the 
host and the path.

-- Leif

View raw message