O'Reilly logo

Oracle ADF Faces Cookbook by Amr Gawish

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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… ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required