You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by ChangCheng <cc...@msn.com> on 2011/04/26 14:34:04 UTC

multiple url assigned to one object?

Hi:
i would like to know is possible to create to plug in support to assign multiple url hash key to one cacheable object?
for example:  http://www.example.com/abc.jpg?id=1,http://www.example.com/abc.jpg?id=2 assign to http://www.example.com/abc.jpg object?
Thanks

 		 	   		  

Re: multiple url assigned to one object?

Posted by Leif Hedstrom <zw...@apache.org>.
No, by definition, a cache key is uniquely identifying one object in the cache. Why would you want two cache keys for one object?

-- leif

Sent from my iPad

On Apr 26, 2011, at 8:01 AM, ChangCheng <cc...@msn.com> wrote:

> 
> Sorry for my unclear question.
> I would like to know is possible have multiple different cache key assign to one cache object?
> Thanks
> 
>> Date: Tue, 26 Apr 2011 06:55:53 -0700
>> Subject: RE: multiple url assigned to one object?
>> From: leif@ogre.com
>> To: dev@trafficserver.apache.org
>> 
>> ChangCheng wrote:
>>> 
>>> Thanks your replay:
>>> Actually, i have looked this plug-in, this plug-in did rewrite hash key
>>> from modified url to normal url hash key, but for original cacheable
>>> object, it's still only have original hash key to assigned.
>>> My question is possible to  assigned multiple key to one object (both
>>> normal url key and modifed url key).
>> 
>> What igor showed you does exactly what you asked in the initial email. You
>> have two different URLs, that you want to normalize to the same cache key.
>> That's what that plugin is for.
>> 
>> -- Leif
>> 
>> 
>                         

RE: multiple url assigned to one object?

Posted by ChangCheng <cc...@msn.com>.
Sorry for my unclear question.
I would like to know is possible have multiple different cache key assign to one cache object?
Thanks

> Date: Tue, 26 Apr 2011 06:55:53 -0700
> Subject: RE: multiple url assigned to one object?
> From: leif@ogre.com
> To: dev@trafficserver.apache.org
> 
> ChangCheng wrote:
> >
> > Thanks your replay:
> > Actually, i have looked this plug-in, this plug-in did rewrite hash key
> > from modified url to normal url hash key, but for original cacheable
> > object, it's still only have original hash key to assigned.
> > My question is possible to  assigned multiple key to one object (both
> > normal url key and modifed url key).
> 
> What igor showed you does exactly what you asked in the initial email. You
> have two different URLs, that you want to normalize to the same cache key.
> That's what that plugin is for.
> 
> -- Leif
> 
> 
 		 	   		  

RE: multiple url assigned to one object?

Posted by Leif Hedstrom <le...@ogre.com>.
ChangCheng wrote:
>
> Thanks your replay:
> Actually, i have looked this plug-in, this plug-in did rewrite hash key
> from modified url to normal url hash key, but for original cacheable
> object, it's still only have original hash key to assigned.
> My question is possible to  assigned multiple key to one object (both
> normal url key and modifed url key).

What igor showed you does exactly what you asked in the initial email. You
have two different URLs, that you want to normalize to the same cache key.
That's what that plugin is for.

-- Leif



RE: multiple url assigned to one object?

Posted by ChangCheng <cc...@msn.com>.
Thanks your replay:
Actually, i have looked this plug-in, this plug-in did rewrite hash key from modified url to normal url hash key, but for original cacheable object, it's still only have original hash key to assigned.
My question is possible to  assigned multiple key to one object (both normal url key and modifed url key).
Thanks

> Date: Tue, 26 Apr 2011 21:34:48 +0800
> Subject: Re: multiple url assigned to one object?
> From: buaawkl@gmail.com
> To: dev@trafficserver.apache.org
> 
> https://issues.apache.org/jira/browse/TS-731
> 
> <https://issues.apache.org/jira/browse/TS-731>here is the plugin.
> 
> 在 2011年4月26日 下午8:34,ChangCheng <cc...@msn.com>写道:
> 
> >
> > Hi:
> > i would like to know is possible to create to plug in support to assign
> > multiple url hash key to one cacheable object?
> > for example:
> > http://www.example.com/abc.jpg?id=1,http://www.example.com/abc.jpg?id=2assign to
> > http://www.example.com/abc.jpg object?
> > Thanks
> >
> >
> 
> 
> 
> 
> -- 
> Regards,
> Conan
 		 	   		  

Re: multiple url assigned to one object?

Posted by Conan Wang <bu...@gmail.com>.
https://issues.apache.org/jira/browse/TS-731

<https://issues.apache.org/jira/browse/TS-731>here is the plugin.

在 2011年4月26日 下午8:34,ChangCheng <cc...@msn.com>写道:

>
> Hi:
> i would like to know is possible to create to plug in support to assign
> multiple url hash key to one cacheable object?
> for example:
> http://www.example.com/abc.jpg?id=1,http://www.example.com/abc.jpg?id=2assign to
> http://www.example.com/abc.jpg object?
> Thanks
>
>




-- 
Regards,
Conan