From: Anders S. Mortensen Date: Thu, 11 Jan 2007 10:03:01 +0000 (+0000) Subject: Added non-caching headers (should be placed in config file I guess). X-Git-Tag: rather.stable.2007.01.11~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=4e1ce38b96af252361fcb139e29f74ca1b222a8c;p=pazpar2-moved-to-github.git Added non-caching headers (should be placed in config file I guess). --- 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);