Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Performance Issue in cache at client side.

 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to enable cache of js|css|images| or static file at client side. I have tried web utility in my web application and i also tried, changing httpd.conf file for enabling cache.
Although its working fine. But the biggest problem i found, if somehow i have to change to static file e.g js.
then how would i update the client side cache that this content is changed, download new copy of this js and the rest of the contents(other css and js) will not affect by doing this ?

we have two http server, IBM http server, apache http server.

Any help thanks in andvance.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set reasonable cache invalid intervals using HTTP headers. That way the resource is updated periodically. Or you can fool the browser / proxy by requesting the resource with a unique parameter like so /pic.jpg?id=1428339. A new software release can contain a new ID to trick the browser into thinking it is a new resource. The last modified date and etags are other approaches to controlling client side cache.
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Deepak,
Actually I am not getting how to enable the ETag in Http server?
Can you please elaborate of implementation the Etag or suggest me good links to enabling etags on Http server like apache and IBM server.

 
Winston Gutkowski
Bartender
Pie
Posts: 10527
64
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neeraj Dhiman wrote:Actually I am not getting how to enable the ETag in Http server?

Dunno, but is this something that might benefit from a caching proxy (like squid)?

Winston
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic