This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Are js files cached? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Are js files cached?" Watch "Are js files cached?" New topic
Author

Are js files cached?

manav kher
Ranch Hand

Joined: Nov 21, 2000
Posts: 98
if the javascript files cached (which i think they are) does that mean that if i have the same file included in more than one page the browser uses the cached copy instead of getting it a second time from the server??..
manav
Ray Hunter
Greenhorn

Joined: Aug 01, 2000
Posts: 20
Yes, if you are calling JS files from outside the page then they are being stored in the cache and they are being called from cache whenever they are on the client computer.
 
jQuery in Action, 3rd edition
 
subject: Are js files cached?
 
It's not a secret anymore!