File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Are js files cached?" Watch "Are js files cached?" New topic

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??..
Ray Hunter

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.
I agree. Here's the link:
subject: Are js files cached?
It's not a secret anymore!