Patent ID: 6988135

Claim:
A method in a data processing system for specifying a cache policy for caching pages which include dynamic content, said method comprising the steps of: permitting a user to request one of said pages to be displayed, said one of said pages including a plurality of fragments; executing an application which includes a plurality of servlets, each one of said plurality of servlets being executed to present a different one of said plurality of fragments, each one of said plurality of servlets being unchanged by said caching policy; processing caching of said one of said pages separately from said application; and specifying one of a plurality of different caching options for one of said plurality of fragments based on an update rate of content of said one of said plurality of servlets, said plurality of different caching options including either static caching, dynamic caching or no caching, content that is updated dynamically being cached using either static caching, dynamic caching, or no caching.