Project

General

Profile

Feature #423

Add expire by Mimetype

Added by Adam over 11 years ago. Updated 6 months ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_expire
Target version:
Start date:
Due date:
% Done:

100%

Missing in 1.5.x:

Description

Right now expire.url is pretty limiting. Adding expire.type would be a lot more flexible if you have files in different directories in your docroot that you want to expire.

Associated revisions

Revision 9f93454d (diff)
Added by gstrauss 6 months ago

[mod_expire] expire by mimetype (fixes #423)

new directive expire.mimetypes for list of mimetypes and expirations

mod_expire is now processed at the start of the response, and so now
may be applied to all responses, including dynamic responses.

mod_expire now applies only to GET and HEAD requests where the response
status is 200 OK or 206 Partial Content, and for which no other modules
or backend has already added a Cache-Control response header.

expire.url takes precedence over expire.mimetypes

x-ref:
"Add expire by Mimetype"
https://redmine.lighttpd.net/issues/423

History

#1 Updated by Anonymous almost 10 years ago

I agree. Setting

$HTTP["url"] =~ "html$" {

does not match requests for `/ -- even if / is mapped to /index.html`.

#2 Updated by gstrauss 6 months ago

  • Description updated (diff)
  • Status changed from New to Patch Pending
  • Assignee deleted (jan)
  • Target version set to 1.4.43

#3 Updated by gstrauss 6 months ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100

Also available in: Atom