The OpenCms side of public resource delivery is configured in WEB-INF/config/opencms-importexport.xml. In addition to the existing <staticexport> settings, two optional elements can replace physical /export copies:
<sharedcache>prepares public responses for an external HTTP cache.<storedcontentdelivery>delivers selected externally stored resources directly from S3 or FS.
The following example is abbreviated. Keep the existing contents of <staticexport> and configure the two delivery elements as described below.
<staticexport enabled="true">
<!-- Existing static export configuration -->
</staticexport>
<storedcontentdelivery enabled="false">
<!-- Optional suffix configuration for direct delivery from S3 or FS -->
</storedcontentdelivery>
<sharedcache enabled="false">
<!-- Cache policies for an external shared HTTP cache -->
</sharedcache>While <staticexport> determines which files are exportable, <sharedcache> and <storedcontentdelivery> control the public static-export path.
<sharedcache> and <storedcontentdelivery> are alternatives and cannot be enabled at the same time.
Efficient byte-range delivery requires the content to be stored in S3 or FS. Configure the storage policy to include the relevant resource types. Existing database content remains database-backed until it is migrated or rewritten.