如何删除lighttpdconfiguration中的响应头

有mod_setenv 添加

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

但是我找不到任何东西来删除响应头。

我必须确定,我的内容不会被移动运营商代理caching。 在Apache上我是这样做的:

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

我怎么能在lighttpd中做到这一点?

这不一定会删除Last-Modified标题,但最终结果可能与您正在查找的内容类似:

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

我希望这有帮助。