While searching trafficserver mail archives i came accross a thread by
"Luís Antonio Pereira" in which he has mentioned regexp for caching
objects. To give it a try i have lowered the validity period to 60d and
used the same in my deployment. What I'm trying is to make quick page
load at user end. Let see how it performs now.
url_regex=(.*)\.(js|gif|jpg|jpeg|png|css|ico|bmp|mp3|mp4|avi|mov|swf|flv|pdf|ts)$
scheme=http ttl-in-cache=60d
url_regex=(.*)\.(js|gif|jpg|jpeg|png|css|ico|bmp|mp3|mp4|avi|mov|swf|flv|pdf|ts)$
scheme=http revalidate=2d
url_regex=(.*)\.(js|gif|jpg|jpeg|png|css|ico|bmp|mp3|mp4|avi|mov|swf|flv|pdf|ts)$
scheme=http action=ignore-no-cache
url_regex=^http://([a-z][0-9]\.){0,1}(profile|sphotos|photos-[a-z])\.ak\.fbcdn\.net/hp(rofile|hotos)-ak-
scheme=http ttl-in-cache=360d
url_regex=^http://([a-z][0-9]\.){0,1}(profile|sphotos|photos-[a-z])\.ak\.fbcdn\.net/hp(rofile|hotos)-ak-
scheme=http revalidate=8h
url_regex=^http://([a-z][0-9]\.){0,1}(profile|sphotos|photos-[a-z])\.ak\.fbcdn\.net/hp(rofile|hotos)-ak-
scheme=http action=ignore-no-cache
url_regex=^http://[^/]*\.(youtube|googlevideo).com/(get_video|videoplayback|videodownload)\?
scheme=http ttl-in-cache=360d
url_regex=^http://[^/]*\.(youtube|googlevideo).com/(get_video|videoplayback|videodownload)\?
scheme=http revalidate=8h
url_regex=^http://[^/]*\.(youtube|googlevideo).com/(get_video|videoplayback|videodownload)\?
scheme=http action=ignore-no-cache
url_regex=^http://[a-z]{1,}\.dl\.sourceforge\.net\/project/ scheme=http
ttl-in-cache=60d
url_regex=^http://[a-z]{1,}\.dl\.sourceforge\.net\/project/ scheme=http
revalidate=8h
url_regex=^http://[a-z]{1,}\.dl\.sourceforge\.net\/project/ scheme=http
action=ignore-no-cache
url_regex=^http://(.*)\.windowsupdate.com/.*\.(cab|exe|dll|ms)
scheme=http ttl-in-cache=60d
url_regex=^http://(.*)\.windowsupdate.com/.*\.(cab|exe|dll|ms)
scheme=http revalidate=8h
url_regex=^http://(.*)\.windowsupdate.com/.*\.(cab|exe|dll|ms)
scheme=http action=ignore-no-cache
url_regex=^http://(.*)\.microsoft.com/.*\.(cab|exe|dll|ms) scheme=http
ttl-in-cache=60d
url_regex=^http://(.*)\.microsoft.com/.*\.(cab|exe|dll|ms) scheme=http
revalidate=8h
url_regex=^http://(.*)\.microsoft.com/.*\.(cab|exe|dll|ms) scheme=http
action=ignore-no-cache
url_regex=^http://[^/]*\.apersonal.avira-update.com/.*\.(cab|exe|dll|msi|gz)
scheme=http ttl-in-cache=60d
url_regex=^http://[^/]*\.apersonal.avira-update.com/.*\.(cab|exe|dll|msi|gz)
scheme=http revalidate=8h
url_regex=^http://[^/]*\.apersonal.avira-update.com/.*\.(cab|exe|dll|msi|gz)
scheme=http action=ignore-no-cache
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
scheme=http ttl-in-cache=60d
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
scheme=http revalidate=8h
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
scheme=http action=ignore-no-cache
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
scheme=http ttl-in-cache=60d
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
scheme=http revalidate=8h
url_regex=^http://[^/]*\.aliveupdate.symantecliveupdate.com/.*\.(cab|exe|dll|msi)
scheme=http action=ignore-no-cache
url_regex=^http://[^/]*\.avast.com/.*\.(vpu|cab|stamp|exe) scheme=http
ttl-in-cache=360d
url_regex=^http://[^/]*\.avast.com/.*\.(vpu|cab|stamp|exe) scheme=http
revalidate=8h
url_regex=^http://[^/]*\.avast.com/.*\.(vpu|cab|stamp|exe) scheme=http
action=ignore-no-cache
url_regex=^http://[^/]*\.avg.com/.*\.(bin|gz) scheme=http ttl-in-cache=60d
url_regex=^http://[^/]*\.avg.com/.*\.(bin|gz) scheme=http revalidate=8h
url_regex=^http://[^/]*\.avg.com/.*\.(bin|gz) scheme=http
action=ignore-no-cache
url_regex=^http://[^/]*\.avgate.net/.*\.(bin|gz) scheme=http
ttl-in-cache=60d
url_regex=^http://[^/]*\.avgate.net/.*\.(bin|gz) scheme=http revalidate=8h
url_regex=^http://[^/]*\.avgate.net/.*\.(bin|gz) scheme=http
action=ignore-no-cache
url_regex=^http://[^/]*\.kaspersky\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
scheme=http ttl-in-cache=60d
url_regex=^http://[^/]*\.kaspersky\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
scheme=http revalidate=8h
url_regex=^http://[^/]*\.kaspersky\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
scheme=http action=ignore-no-cache
url_regex=^http://[^/]*\.kaspersky-labs\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
scheme=http ttl-in-cache=60d
url_regex=^http://[^/]*\.kaspersky-labs\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
scheme=http revalidate=8h
url_regex=^http://[^/]*\.kaspersky-labs\.com/.*\.(xml|stt|dll|dat|avc|dif|diff|exe|cab|fad|zip|kdc|klz)
scheme=http action=ignore-no-cache
Thanks
F.
IRC: zoot
On 2/10/2016 3:03 PM, Muhammad Faisal wrote:
Agreed. Will start from focusing on static content first.
On 2/10/2016 3:01 PM, Brian Geffon wrote:
I would just start by ensuring the static content you care about is
actually cached, optimize from there.