This is a discussion on lighttpd mod_expire how to check it's work within the Web servers forums, part of the Mastering Servers category; hello I have got this config (with mod_expire activated) Code: expire.url = ( "*.js" => "access 7 days", "*.css" => ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
hello
I have got this config (with mod_expire activated) Code:
expire.url = (
"*.js" => "access 7 days",
"*.css" => "access 7 days",
"*.gif" => "access 7 days",
"*.jpg" => "access 7 days",
)
Code:
curl -I http://forum.topflood.com/themes/forums/style/style.css HTTP/1.1 200 OK Content-Type: text/css Accept-Ranges: bytes ETag: "-1348294228" Last-Modified: Tue, 24 Jun 2008 21:49:02 GMT Content-Length: 4955 Date: Wed, 25 Jun 2008 11:37:30 GMT Server: lighttpd/1.4.19 thanks in advance |
| Sponsored Links | ||
|
|
|
||||
|
I think your regex is not correct, update it as follows
Code:
$HTTP["url"] =~ "\.(jpg|gif|png|css|js)$" {
expire.url = ( "" => "access 7 days" )
}
Code:
service lighttpd restart curl -I http://forum.topflood.com/themes/forums/style/style.css | grep Cache Code:
etag.use-inode = "enable" etag.use-mtime = "enable" etag.use-size = "enable" static-file.etags = "enable"
__________________
Rocky Jr. You may have my body & soul, but you will never touch my pride! If you have knowledge, let others light their candles at it. Certified to work on HP-UX / Sun Solaris / RedHat |
![]() |
| Bookmarks |
| Tags |
| etags , mod_expire |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Do you use Linux to do your everyday work? | charvi | The Hangout | 12 | 10-10-2008 07:01 PM |
| old server.error-handler-404 doesn't work anymore | muks | Web servers | 5 | 08-29-2007 02:29 PM |
| How to check md5 hash | raj | Linux software | 3 | 08-17-2007 06:34 AM |
| will this work? | mudfish | Shell scripting | 0 | 03-28-2007 01:02 PM |
| Linux usb keyboard does not work | jerry | Linux software | 3 | 04-05-2006 10:21 PM |