Re: Change Last-Modified response

From: Willy Tarreau <w#1wt.eu>
Date: Sat, 3 Dec 2011 23:00:14 +0100


Hi Francesco,

On Fri, Dec 02, 2011 at 12:34:53PM +0100, Francesco Latini wrote:
> Hi all,
> I have a problem with the HTTP Header Manipulation. I have added a
> Cache-Control response and deleted a Server response with HAproxy keywords
> rspadd and rspdel.
> There is a way to modify a Last-Modified response with the date of the
> request? A keyword like a `date '+%Y-%m-%d'`?

No there is no way to do this. But why on earth are you trying to do this ? Wouldn't it be possible in your case to emit a header in the future or in the past ? Or simply to delete it ? Or couldn't you just rename the Date header "Last-Modified" ?

Regards,
Willy Received on 2011/12/03 23:00

This archive was generated by hypermail 2.2.0 : 2011/12/03 23:15 CET