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
</Directory>

How can I do that in lighttpd?

link|improve this question
feedback

1 Answer

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.

link|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) – Gaks Oct 27 '10 at 17:26
feedback

Your Answer

 
or
required, but never shown

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