I am using jboss Server 7.1.1 for deploying a java web application. For js, css, font files the browser cache is not getting updated with new changes. Every time we insist the clients to clear cache in their browsers to get the new changes to effect.
is there any configuration which i can configure, so that when a new code is deployed i can guide all the request to be provided with the updated file ?
by googling on this topic i find that, we can write custom methods to set e-tag value. is there any configuration which can help me doing it?
most of the time we do a hot deploy (upload the war file in jboss management console with out down time). so i doubt whether the custom e-tag will be updated or not during hot deployment as we configure it on server startup.
or is there a way to handle it in web application's web.xml file ?
I need a solution which can use browser cache till next deployment happens for js, css and font files. i don't what to set "expires" header. because we don't have fixed deployment cycles.
Let me know if you need more info to arrive at a solution.