Home | Mirror | Search

5. Example

5.1. s-maxage

s-maxage 頭作用於反向代理伺服器

例 101.5. Cache

$HTTP["url"] =~ "^/images/2010" {
        expire.url = ( "" => "access 15 minutes" )
}

$HTTP["host"] =~ "(img1|img2|img3)\.example\.com" {
    expire.url = ( "" => "access 15 minutes" )
    setenv.add-response-header  = ("Cache-Control" =>"s-maxage=3600")
}
			

comments powered by Disqus