Back to index

courier  0.68.2
cginocache.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1998 - 2007 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 /*
00007 */
00008 #include      "cgi.h"
00009 #include      <stdio.h>
00010 
00011 void cginocache()
00012 {
00013        if (cgi_useragent("MSIE"))
00014        {
00015               printf("Cache-Control: private\n");
00016               printf("Pragma: private\n");
00017        }
00018        else
00019        {
00020               printf("Cache-Control: no-store\n");
00021               printf("Pragma: no-cache\n");
00022        }
00023 }