WebDeleteCacheEntry Function

Action

This function is used to delete a cache entry in the browser cache of a user. If a URL that is going to be requested from the server, cannot be found in the browser cache a full request is performed (no cache hit or conditional request).

Include file

WebAPI.bdh

Syntax

WebDeleteCacheEntry( in sUrl : string ): boolean;

Return value

  • true if the cache entry has been deleted successfully.

  • false otherwise.

Parameter Description
sUrl Absolute URL of the cache entry to be deleted.

Example

dcltrans
  transaction TMain
  var
    sResult : string(100);
  begin
    WebPageUrl("http://standardhost/shopit/", "ShopIt - Greetings");
    WebDeleteCacheEntry("http://standardhost/shopit/images/arrowBrown.gif");
    WebPageUrl("http://standardhost/shopit/",
"ShopIt - Greetings");
  end TMain;