This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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.
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.
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.