hi Kavita,
"I want to cache views and controller and other files before even they have loaded to browser." - do you want to cache it server-side? - Have you looked into EhCache? - I find it to be a strange thing to do in the "web server" when you have tools to handle the job more efficiently.