Servers don't cache the scripts and pages, the client (browser) does.
And, yes, your scripts will not reload if you indicate in the HTML a
page expiration date. Any reloads before then will be handled solely in
the browser. But, remember, this affects all aspects of your web page:
not only the JavaScript, but the CSS, the HTML, and any other specialty
objects you have. If you have an input form on the page, DON'T DO
THIS!!!, for an updated page will not load in this case.
-Java Guy
MichaelC wrote:
>
> 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@yahoogroups.com
> <mailto:Java_Official%40yahoogroups.com>, Burak <xface66@...> wrote:
> >
> > no. javascript runs on clients. not server.
> >
>
>
------------------------------------
Visit http://aiaiai.com or http://jgame.org for more groups to join.
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 IMMEDIATELYYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Java_Official/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/Java_Official/join
(Yahoo! ID required)
<*> To change settings via email:
Java_Official-digest@yahoogroups.com
Java_Official-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
Java_Official-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
No comments:
Post a Comment