A data processing system and method are described for specifying a cache policy
for caching pages which include dynamic content. A user is permitted to request
a page to be displayed. The page includes multiple fragments. An application is
executed which generates those fragments. The generation of fragments is are unchanged
by the caching policy. Each one of the servlets is executed to present a different
one of the fragments. Caching of the page fragments can now be processed separately
from the execution of the application.