|
####################################################################### |
|
## |
|
## Expire Module |
|
## --------------- |
|
## |
|
## See http://www.lighttpd.net/documentation/expire.html |
|
## |
|
server.modules += ( "mod_expire" ) |
|
|
|
## |
|
## assignes a expiration to all files below the specified path. The |
|
## specification of the time is made up of: |
|
## |
|
## <access|modification> <number> <years|months|days|hours|minutes|seconds> |
|
## |
|
#expire.url = ( |
|
# "/buggy/" => "access 2 hours", |
|
# "/images/" => "access plus 1 seconds 2 minutes" |
|
#) |
|
etag.use-mtime = "enable" |
|
etag.use-inode = "disable" |
|
static-file.etags = "enable" |
|
$HTTP["url"] =~ "\.(css|js|png|jpg|ico|gif)$" { |
|
expire.url = ( "" => "access 7 days" ) |
|
} |
|
|
|
## |
|
####################################################################### |
|
|