summaryrefslogtreecommitdiff
path: root/source3/web/swat.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-03-10 04:56:58 +0000
committerAndrew Tridgell <tridge@samba.org>1998-03-10 04:56:58 +0000
commit49a5dd09b9aaba81fa217c9d41fce5e1f90c054b (patch)
treef29b230c95592a89e7d4735d372c0c3addd5afd3 /source3/web/swat.c
parentc03c56b2e29fd773b19b01d22be4ce347be9f05b (diff)
downloadsamba-49a5dd09b9aaba81fa217c9d41fce5e1f90c054b.tar.gz
samba-49a5dd09b9aaba81fa217c9d41fce5e1f90c054b.tar.bz2
samba-49a5dd09b9aaba81fa217c9d41fce5e1f90c054b.zip
added Date and Expires headers in the mini web server so clients know
what they can cache. (This used to be commit b6055e40bb91775a29b756640d95910a6f19814f)
Diffstat (limited to 'source3/web/swat.c')
-rw-r--r--source3/web/swat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 508c8944b4..ea93d3ccd1 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -35,6 +35,7 @@ static pstring servicesf = CONFIGFILE;
/* start the page with standard stuff */
static void print_header(void)
{
+ printf("Expires: %s\r\n", http_timestring(time(NULL)));
printf("Content-type: text/html\r\n\r\n");
printf("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2//EN\">\n");
printf("<HTML>\n<HEAD>\n<TITLE>Samba Web Administration Tool</TITLE>\n</HEAD>\n<BODY>\n\n");