Optional: Download and Review ADF Application (houses.jspx (application view), web.xml  and adf-config.xml configuration for caching/Compression)

After downloading the sample ADF Application, start JDeveloper and open the application workspace HousesDemos.jws

Open houses.jspx page and review the layout. This page uses a number of ADF layout components including a Panel Collection, Tabs, Panel Dashboard, Panel Boxes and more. You'll also notice some forms, a table, carousel, and a data visualization component all of which bind to data in ADF BCs. This application leverages Oracle XE database and a MLS schema with data that is provided for download and can be installed imported into a database. Note that the MLS schema is a requirement of the sample application but is not specific to this process.

Open the web.xml.  This configuration file is located within the ViewController project | Web Content | WEB_INF structure. Notice the context-param for org.apache.myfaces.trnidad.resource.DEBUG that is set to false. In the Oracle Application Development Framework Performance Tuning Guide, this paramater is discussed: " When resource debug mode is enabled, the HTTP response headers do not tell the browser (or WebCache) that resources (JS libraries, CSS style sheets, or images) can be cached. Disable the org.apache myfaces.trinidad.resource.DEBUG parameter in the web.xml file to ensure that caching is enabled."

Also in the web.xml is the filter for ADF Faces Caching. This filter is discussed in the Oracle Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework. The ADF Faces Caching Filter (ACF) is a Java EE Servlet filter that can be used to accelerate web application performance by enable the caching (and/or compression) of static application objects such as images, style sheets, and documents like .pdf and .zip files.

ACF filter class: Specify the class to perform URL matching to rules defined in adf-config.xml

ACF filter mapping: Define the URL patterns to match with the caching rules defined in adf-config.xml

The ADF Faces JAR includes default caching rules for common resource types, such as .js, .css, and image file types. These fixed rules are defined in the adf-settings.xml file, and cannot be changed during or after application deployment. Application developers can define application caching rules in the adf-config.xml file that takes precedence over the rules defined in adf-settings.xml