Example: web_cache_cleanup

In the following example, the web_cache_cleanup function clears the cache after reloading a page and its resources.

C Language

web_url("index.html",
    "URL=http://my_web_server/index.html",
     "Resource=0",
     "Referer=",
     "Mode=HTTP",
     LAST );
web_url("survey.gif",
     "URL=http://my_web_server/gifs/survey.gif",
     "Resource=1",
     "Referer=http://my_web_server/index.html",
     LAST );
web_url("top_blue.gif",
     "URL=http://my_web_server/gifs/top_blue.gif",
     "Resource=1",
     "Referer=http://my_web_server/index.html",
     LAST );
. . . 
// Reload home page
web_url("index.html",
     "URL=http://my_web_server/index.html",
     "Resource=0",
     "Referer=",
     "Mode=HTTP",
     LAST );
web_url("top_blue.gif",
     "URL=http://my_web_server/gifs/top_blue.gif",
     "Resource=1",
     "Referer=http://my_web_server/index.html",
     LAST );
web_cache_cleanup();