06-21-2004 08:02 AM
Hi All,
I tried to force the TTL of cached objects ussing rule and templates on a CE-565 but the object remain cached enven after the ttl expiration; here is the configuration:
http cache-cookies
http cache-on-abort enable
http proxy incoming 80
http max-ttl days text 1 binary 1
!
ftp proxy incoming 80
!
!
https proxy incoming 80
rule enable
rule action cache-non-cacheable ttl minutes 10 pattern-list 10 protocol all
rule pattern-list 10 url-regex .*/p-grif/images/.*
rule pattern-list 10 domain testf\.foo\.it
I intended to set the TTL to 10 minutes for all the objects whose url contains /p-grif/images/ and the domain is testf.foo.it.
Is my configuration correct?
Thanks in advance
Fausto
06-23-2004 02:13 AM
are you sure the rule is being hit ?
'sho rule'
As you can see this rule applies only to non-cacheable object [like script page result].
For normal cacheable object, you can use the commands as described at :
Regards,
Gilles.
06-23-2004 03:49 AM
Hi gilles,
I didn't know that rules apply only to non cacheable object; using http age-multiplier I can only use a heuristic time to live and I'n not able to set same TTL only on objects coming from the same domain.
Is there an alternative way to do that with rules?
Thanks
Fausto
06-23-2004 06:07 AM
first let me clarify.
rules apply to more than non-cacheable object.
But the specific rule you are using are for non-cacheable objects. As mention by the rule action, non-cacheable object will be cached with the ttl parameters specified.
Unfortunately, there is no way to control the exact TTL for objects.
Gilles.
06-23-2004 07:09 AM
Hi Gilles,
your answer is very clear.
For TTL I will rely on http 1.1 header, set by the web server.
Thanks
Fausto
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide