IBM Support

Setting web content expiry for Cognos Analytics with IBM HTTP Server or Apache HTTP Server

Question & Answer


Question

How to set the web content expiry for Cognos Analytics with IBM HTTP Server or Apache HTTP Server?

Answer

In IBM HTTP Server and Apache HTTP Server, the expires_module adds response headers to requests that indicate to the browser how long it can hold the returned resource before checking for new versions.

Steps:

1. In the apache/conf directory, open the cognos.conf file in a text editor.

2. The following is the code snippet in the file which sets the expiry of webcontent:

<IfModule mod_expires.c>

<FilesMatch "\.(jpe?g|png|gif|js|css|json|html|woff2?|template)$">

ExpiresActive On

ExpiresDefault "access plus 1 day"

</FilesMatch>

</IfModule>

3. In the above code, the web content is set to expire after 1 day. This can be changed to a month/year as per the users requirement.

4. Restart the server.

Related Information

[{"Product":{"code":"SSTSF6","label":"IBM Cognos Analytics"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"11.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg22012993