The following parameters can be set to configure use of image caching
in ENOVIA apps.
ematrix.maxImageCookieLength—Can be added to
increase the total allowable cookie size, setting the threshold for when
the system must use the MCS for delivering images instead of the faster
FCS. For example, the parameter could be:
<context-param id="ContextParam_#">
<param-name>ematrix.maxImageCookieLength</param-name>
<param-value>1960
</param-value>
</context-param>
BACKGROUND: The image URL encodes various information
about the image, including any cookies that were presented by the browser
to the MCS. If the session cookie string is too large, the resulting
image URL will exceed the maximum URL length supported by the browser (2048
bytes on Internet Explorer). This is most likely to occur when a
configuration involves many cookies for the session (SSO, web server
proxies, etc.). If the total length of the cookie string exceeds this
value, 3DSpace generates a URL that is
addressed to the MCS for image delivery (omitting the cookies) rather
than generating an image URL that exceeds 2048 bytes.
You can increase the total allowable cookie size by adding this setting
to a web.xml.part file that will be built into the web.xml file for the MCS server. By default the maximum cookie
length is 1960. With this setting in place, the system will send the
image request to the MCS if the total length of all cookies is larger
than 1960. The default should be fine in most circumstances, but you may
want to increase it if you are in an environment that may have many cookies
and Mozilla is the browser standard.
ematrix.isContentDispositionEnabledForImages—Can be added for WebLogic implementations to allow image files to be
saved in the browser. For example, the parameter could be:
<context-param id="ContextParam_#">
<param-name>ematrix.isContentDispositionEnabledForImages</param-name>
<param-value>True
</param-value>
</context-param>
BACKGROUND: By default, the image service sets both Cache-Control
and Content-Disposition in its headers. The Cache-Control header is set
to allow the browser to cache the image. The Context-Disposition header
is set to allow the browser to save the image with the file name of the
original file. WebLogic considers it an error to set both headers. Setting
ematrix.isContentDispositionEnabledForImages to false on the FCS
server suppresses the Content-Disposition header setting, which
means that saved image files are named "DynamicImage".