Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

There is mod_setenv for adding:

setenv.add-response-header = ( "Header" => "value" )

But I can't find anything to remove response headers.

I have to be sure, that my content is not cached by mobile operator proxies. On Apache I was doing it with:

<Directory "/path/to/dir">
    Header set Cache-Control "no-cache, must-revalidate"
    Header add Pragma "no-cache"
    Header unset Last-Modified
    RequestHeader unset If-Modified-Since

How can I do that in lighttpd?

share|improve this question

1 Answer 1

This won't necessarily remove the Last-Modified header, but the end result may be similar to what you are looking for:

expire.url = ("" => "modification" )
etag.use-inode = "disable"
etag.use-mtime = "disable"
etag.use-size = "disable"
static-file.etags = "disable"

I hope this helps.

share|improve this answer
It does a bit. It just removed Etag header from HTTP response (which I should remove while using Apache too - I guess) – grzaks Oct 27 '10 at 17:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.