Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Applet loading  RSS feed

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How the applets are loaded ?
After loading an applet, suppose I close the browser and again open the browser? Did the applet get loaded again?Or the browser caches the applet when it is loaded for the first time and use this cached applet for next loading?
If it is again loaded without any caching, can I make the caching possible and get the applet loaded in less time ?If it is possible can I make this happen for a long time?
I am using servlets . Is there anyother way for doing this caching with the help of servlets.
My aim is to reduce the load time for applets
Please is very urgent
Posts: 20352
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caching is completely the responsibility of the client - the server cannot force a client to cache if it doesn't want to - though a properly working client should honor server requests NOT to cache. The actual "stickiness" of an object in cache is usually controllable by the user, but the details are browser-specific.
You don't want an applet to be cached until a certain date - they're just too likely to have bug-fixes applied before then. The ideal method would be for the server to present a timestamp and the client to only pull a copy if its timestamp is out-of-date or the object isn't in cache, but I don't think there's an http protocol for that. On the other hand, I'm pretty sure that there were some improvements in caching added to HTTP 1.1, so I'd check the standard at and see what it says.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!