It is the client (the browser) that caches Javascript. This will happen if the javascript is a reference to a javascript file, such as
<script language="JavaScrip
and not contained within the page's HTML, such as
<script language="JavaScrip
.
.
.
</script>
If the user restarts the browser, it will retrieve the updated javascript file (myFile.js, in this case).
--- In Java_Official@
>
> I'm not really a web front end guy, so the answer below might still be correct, but if I understand correctly the client still gets the script from the server. Don't the servers, depending on configuration, cache those scripts or are they reloaded every time? If they are cached, how do the clients get the latest version and not the cached version? Would the cache automatically get replaced when a new version is saved? I'm just trying to get a better understanding of what is happening under the covers, rather than just accepting the once a new version is available the client will execute it, even if that statement is true.
>
> Michael K. Craghead
>
>
>
> --- In Java_Official@
> >
> > no. javascript runs on clients. not server.
> >
>
Java Official Group is created for the following topics: Java 2 Enterprise Edition - J2EE, Java 2 Standard Edition - J2SE, Java 2 Micro Edition - J2ME, XML, XSL, XSD, XPATH, Web Services, Jini, JXTA for all type of Java Geeks.
Whoever posts spam / ads / job related message will be BANNED IMMEDIATELY
No comments:
Post a Comment