projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4751d97
)
Added non-caching headers (should be placed in config file I guess).
author
Anders S. Mortensen
<sondberg@indexdata.dk>
Thu, 11 Jan 2007 10:03:01 +0000
(10:03 +0000)
committer
Anders S. Mortensen
<sondberg@indexdata.dk>
Thu, 11 Jan 2007 10:03:01 +0000
(10:03 +0000)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
4598013
..
1fef304
100644
(file)
--- 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 <stdio.h>
@@
-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);