Disable caching in WebHelp Classic output

In cases where a set of WebHelp Classic pages need to be updated on a regular basis to deliver the latest version of the documentation, the WebHelp pages should always be requested from the server upon re-loading it in a Web browser on the client side, rather than re-using an outdated cached version in the browser.

To disable caching in WebHelp Classic output, follow this procedure:

  1. Edit the following XSL file: [DITA-OT DIR]\plugins\com.oxygenxml.webhelp.classic\xsl\createMainFiles.xsl.
  2. Locate the following template in the XSL file: <xsl:template name-"create-toc-common-file"> and add the following code snippet:
    <meta http-equiv="Pragma" content="no-cache" />
    					<meta http-equiv="Expires" content="-1" />

    The code should look like this:

      <html>
    								<head>
    								<xsl:if test="$withFrames">         
    								<base target="contentwin"/>
    								</xsl:if>
    								<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    								<!-- Disable caching of WebHelp pages in web browser. -->      
    								<meta http-equiv="Pragma" content="no-cache" />
    								<meta http-equiv="Expires" content="-1" />
    								....
  3. Save your changes to the file.
  4. Run the WebHelp transformation scenario to generate the output.