Case -1
If u do not set the expiry header for these .js they will be checked from the
server for freshness.
In this case only HTTP header interchange takes place between the client and
th server.
Case - 2
If u set the expiry date to some future date ( Through some http1.1 compliant
server) , then the browser does not at all go to the server to take these
files.
This is the best option.
To overcome the diffiuculty of propagating the newer versions, do this.
Say iu have a class Global.java, Have as static final int property
"Version" .
In the .jsp use <script language='javascript' src='file1.js&Version=<%
Global.Vesion %>'></script>
Now every time a change in .js, increment the value of Version in .js copile
and then deploy.
Case-3
If u want the page shoud never cache then use this in the HTML HEAD tag
<%
response.setHeader("Pragma","No-Cache");
response.setDateHeader("Expires",0);
response.setHeader("Cache-Control","no-Cache");
%>
Thanks and Regards
Raj
EXT 6146
-------------------------------------------------------------------
The contents of this e-mail are confidential to the ordinary user
of the e-mail address to which it was addressed and may also be
privileged. If you are not the addressee of this e-mail you should
not copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever. If you have received this e-mail in error
please notify us by telephone or e-mail the sender by replying to
this message, and then delete this e-mail and other copies of it
from your computer system. Thank you.
We reserve the right to monitor all e-mail communications through
our network.