How to Disable Caching in WebHelp Responsive Output
In cases where a set of WebHelp Responsive 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 Responsive output, follow this procedure:
- Create a new well-formed XML 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:<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> </head> </html>
- Edit the DITA Map WebHelp Responsive transformation scenario and open the Parameters tab.
- Edit the value of the
webhelp.fragment.head
parameter and set it to the absolute path of your XML file. - Click OK to save the changes to the transformation scenario.
- Run the transformation scenario.
<head>
element of your output document.