trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Valerie Detweiler <>
Subject Re: setting url specific caching time
Date Thu, 05 Aug 2010 14:19:32 GMT
Pranav -

Ideally the Cache-Control and Expires headers should be set correctly on the 
origin servers, however you may override the origin response header using 
cache.config. For example:

url_regex=/dir/file1.html ttl-in-cache=5m
url_regex=/dir/file2.html ttl-in-cache=12h

For the full syntax please refer 


----- Original Message ----
From: Pranav Modi <>
Sent: Thu, August 5, 2010 9:10:00 AM
Subject: setting url specific caching time

Is there a way to set a specific caching time for specific url. For
example - I want data from one url to be cached for 5 mins and from
another url to be cached for 12 hours. Can it be done?


View raw message