My Oracle Support Banner

PERFORMANCE: Attempting to Implement the linkCaching.properties Configuration in WebCenter Portal 12c is not Working, Content Presenter Renders URL Image Links in Data Files Using the GET_FILE Service Which does not Allow Caching (Doc ID 2668068.1)

Last updated on MAY 11, 2020

Applies to:

Oracle WebCenter Portal - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms


ACTUAL BEHAVIOR

Content Presenter in WebCenter Portal 12c renders images in data files using the UCM GET_FILE service which doesn't allow caching of static content.

Attempting to implement the linkCaching.properties configuration doesn't work.


EXPECTED BEHAVIOR

Expect being able to Implement the linkCaching.properties Configuration as it was provided in 11g per the following document:

How To Improve Performance of Content Presenter Images Rendering? (Doc ID 1498735.1)

This configuration works in 11g but in 12c doesn't work.


STEPS

The issue can be reproduced at will with the following steps:

  1. Create a file under named linkCaching.properties with the following content:

    oracle.webcenter.content.integration.spi.ucm.linkConversion=false
    oracle.webcenter.content.integration.spi.ucm.suppressGetFileUrl=on

  2. Add the new file to the classpath to the setDomainEnv.sh as follows:
    Note: Replace [MW_HOME] - for your Middleare home path.

    if [ "${SERVER_NAME}" = "WC_Portal" ] ; then
       PRE_CLASSPATH="${PRE_CLASSPATH} [MW_HOME]/linkCaching.properties"
       export PRE_CLASSPATH
    fi

  3. Restart the WC_Portal managed server(s).

  4. Add a Content Presenter to a page with Site Studio Content with image(s).

    e.g,.:

    You can use the RD_ARTICLE Site Studio region definition to create a data file with an article with an image.
    Set the content presenter to use the Full Article View Template.

  5.  View the portal.
     

  6. Right click over the image and get the image URL.
    You will see it is using GET_FILE service which does not allow caching.

    Note: <docname> is the document name for the image file.

    e.g.:
    http://<HOSTNAME>:<PORT>/cs/idcplg?IdcService=GET_FILE&dDocName=<docname>&RevisionSelectionMethod=LatestReleased
     

  7. Open Chrome browser incognito window. 

    • Open Chrome Development Tools.

    • Select the Network Tab.

    • Check "Preserve Log".

    • View the page with Content Presenter.

    • Navigate away and get back to the page with content presenter.

    • Note the image request comes with status 200.
      So the image is not being cached.

 

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.