Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are js files cached?

 
manav kher
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic