#!/bin/ch /* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */ #include <cgi.h> int main() { class CResponse Response; chchar *cacheControl_def, *cacheControl_cur; // get default cache control type cacheControl_def = Response.getCacheControl(); //put cache control type as public Response.setCacheControl("public"); //get current cache control type cacheControl_cur = Response.getCacheControl(); Response.begin(); Response.title("Test of Response.setCacheControl and Response.getCacheControl"); printf("<H1> Test of Response.setCacheControl and Response.getCacheControl </H1> <hr>\n"); printf("Default Cache Control is %s <br>\n", cacheControl_def); printf("Current Cache Control is %s <br>\n", cacheControl_cur); Response.end(); }