Enable Expires header - Perceptive AP Invoice Approval - 2.8 - 2.8 - Ready - Other - external

Perceptive AP Invoice Approval User Guide

Platform
Other
Product
Perceptive AP Invoice Approval
Release
2.8
License

You must use an Expires header to ensure the application runs correctly and invalid content is not displayed to users.

To configure Apache Tomcat to use an Expires header, complete the following steps.

  1. Navigate to the Apache Tomcat conf directory.
    The default location is [drive:]\Program Files\Apache Software Foundation\[Tomcat Installation]\conf\
  2. Open the web.xml file with a text editor and add the following code to the file.
    <web-app>
    <filter>
    <filter-name>ExpiresFilter</filter-name>
    <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
    <init-param>
    <param-name>ExpiresDefault</param-name>
    <param-value>now plus 0 minutes</param-value>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>ExpiresFilter</filter-name>
    <url-pattern>/*</url-pattern>
    <dispatcher>REQUEST</dispatcher>
    </filter-mapping>
    ...
    In the example above, content expires immediately. So, all browsers always ask if the cached copies of files need updating. You can modify the param-value content to suppress the check for a set amount of time after the web browser saves the data. However, the browser does not display updates to the application until the amount of time defined by param-value has passed. During the time that the check for new content is suppressed, it is possible that an application stops functioning properly.