Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes EhCache and the fly likes Web Page caching Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "Web Page caching" Watch "Web Page caching" New topic

Web Page caching

Poornima Sharma
Ranch Hand

Joined: Sep 09, 2008
Posts: 114
Hi All,

I was looking through the below link for web page caching in ehcache:-
EHCache Web Page Caching

They say that:- Pages are cached based on their key. The key for this cache is the URI followed by the query string. An example is /admin/SomePage.jsp?id=1234&name=Beagle. However I am unsure how will it provide the security. If someone changes the id and hits the page, will it show-up the cached data of some other user? Can't we decide our own keys? Can't we decide when to pick up the cached data and when to fetch new data?


Poornima Sharma
SCJP 6.0
Have you tried LearnNowOnline?
subject: Web Page caching