cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
546
Views
0
Helpful
4
Replies

CE and HTTP TTL

f.franceschini
Level 1
Level 1

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

4 Replies 4

Gilles Dufour
Cisco Employee
Cisco Employee

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 :

http://www.cisco.com/en/US/products/sw/conntsw/ps491/products_configuration_guide_chapter09186a0080131e53.html#1028479

Regards,

Gilles.

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

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.

Hi Gilles,

your answer is very clear.

For TTL I will rely on http 1.1 header, set by the web server.

Thanks

Fausto

Review Cisco Networking for a $25 gift card