Book Image

Oracle ADF Faces Cookbook

By : Amr Gawish, Amr Ismail Gawish
Book Image

Oracle ADF Faces Cookbook

By: Amr Gawish, Amr Ismail Gawish

Overview of this book

Table of Contents (18 chapters)
Oracle ADF Faces Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Open the application.

  2. Navigate to Application Resources | Descriptors | ADF META-INF and double-click on the adf-config.xml file.

  3. View the file in the source mode...