本節介紹螢幕as a Cloud Service的調度程式配置。
允許在調度程式中為螢幕as a Cloud Service中的發佈實例使用以下篩選器和快取規則。
## # Content Configurations
/0200 { /type "allow" /method '(GET|HEAD)' /url "/content/screens/*" }
#/0201 { /type "allow" /method '(GET|HEAD)' /url "/content/experience-fragments/*" } ## uncomment this, if you're using experience-fragments
## add any other formats required for your project here
/0202 { /type "allow" /extension '(css|eot|gif|ico|jpeg|jpg|js|gif|pdf|png|svg|swf|ttf|woff|woff2|html|mp4|mov|m4v)' /path "/content/dam/*" }
/0203 { /type "allow" /method 'GET' /url "/screens/channels.json" }
## # Enable clientlibs proxy servlet
/0210 { /type "allow" /method "GET" /url "/etc.clientlibs/*" }
添加 /statfileslevel "10"
至 /cache
部分 publish_farm.any
/。
此快取規則支援從快取域快取多達10個級別,並在發佈內容時使其失效,而不是使所有內容失效。 您可以根據內容結構的設定深度更改此級別。
將以下內容添加到 /invalidate
部分 publish_farm.any
。
/0003 {
/glob "*.json"
/type "allow"
}
將以下規則添加到 /rules
部分 /cache
publish_farm.any或包含於 publish_farm.any
。
## Allow Dispatcher Cache for Screens channels
/0002
{
/glob "/content/screens/*.html"
/type "allow"
}
## Allow Dispatcher Cache for Screens offline manifests
/0003
{
/glob "/content/screens/*.manifest.json"
/type "allow"
}
## Allow Dispatcher Cache for Assets
/0004
{
/glob "/content/dam/*"
/type "allow"
}
## Deny Screens Channels json
/0005
{
/glob "/screens/channels.json"
/type "deny"
}