Static files cache service.
| Type | Name and description |
|---|---|
Boolean |
getEnabledAccessLog()Returns to enable or disable the access log. |
Duration |
getExpiresDuration()Returns the expires duration. |
Map<String, Object> |
getHeadersValues()Returns the headers to add. |
List<String> |
getIncludeRefs()Returns the references of the defined web services to include in this static files service. |
| Methods inherited from class | Name |
|---|---|
interface StaticService |
getIndexFiles, getIndexMode |
Returns to enable or disable the access log.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "static-cache", alias: "/private", {
access log: yes
}
}
}
true to enable the access log or null.Returns the expires duration.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "static-cache", alias: "/private", {
expires "P1D"
}
}
}
null.Returns the headers to add.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "static-cache", alias: "/private", {
headers "Cache-Control", value: public"
}
}
}