topical media & game development
lib-ch-example-ref-wcgi-setCacheControl.cgi / cgi
#!/bin/ch
/* Copyright (c) 2001 by SoftIntegration, Inc. All Rights Reserved */
include <wcgi.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(L"public");
//get current cache control type
cacheControl_cur = Response.getCacheControl();
Response.begin();
Response.title(L"Test of Response.setCacheControl and Response.getCacheControl");
printf("<H1> Test of Response.setCacheControl and Response.getCacheControl </H1>
\n");
printf("Default Cache Control is : ");
fputws(cacheControl_def? cacheControl_def : L"(null)", stdout);
printf(" <br>\n");
printf("Current Cache Control is : ");
fputws(cacheControl_cur? cacheControl_cur : L"(null)", stdout);
printf(" <br>\n");
Response.end();
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.