Using ADF caching to cache and compress static resources
Content delivery network is great to load your static resource in parallel; however, sometimes you might need to cache and compress these resources. Typically, you can use Oracle Web Cache or Oracle Traffic Director, and you can configure these cache rules from your application as well.
Even if you don't have Oracle Web Cache or Oracle Traffic Director, you can cache to the browser directly.
In this recipe, we are going to use ADF Faces caching rule to cache custom CSS files. For this example application, you can continue from the last recipe's ADFFacesWithCDN
application, or you can grab this project's recipe by cloning the ADFFacesWithCache
application from the Git repository.
How to do it…
To know how to apply the cache rules on your ADF application, perform the following steps:
Open the application.
Navigate to Application Resources | Descriptors | ADF META-INF and double-click on the
adf-config.xml
file.View the file in the source mode...