Edit online

How to 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 file: [OXYGEN_INSTALL_DIR]\frameworks\docbook\xsl\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" />
    Note: 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. Re-run your WebHelp transformation scenario.