This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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
subject: Web Page caching