From 4e1ce38b96af252361fcb139e29f74ca1b222a8c Mon Sep 17 00:00:00 2001 From: "Anders S. Mortensen" Date: Thu, 11 Jan 2007 10:03:01 +0000 Subject: [PATCH] Added non-caching headers (should be placed in config file I guess). --- src/http_command.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/http_command.c b/src/http_command.c index 4598013..1fef304 100644 --- a/src/http_command.c +++ b/src/http_command.c @@ -1,5 +1,5 @@ /* - * $Id: http_command.c,v 1.16 2007-01-10 10:17:50 adam Exp $ + * $Id: http_command.c,v 1.17 2007-01-11 10:03:01 sondberg Exp $ */ #include @@ -522,6 +522,10 @@ void http_command(struct http_channel *c) int i; c->response = rs; + + http_addheader(rs, "Expires", "Thu, 19 Nov 1981 08:52:00 GMT"); + http_addheader(rs, "Cache-Control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); + if (!command) { error(rs, "417", "Must supply command", 0); -- 1.7.10.4