• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is the image downloaded many times or just once

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
In an HTML page if the same image is present at 5 places. Then will it be downloaded 5 times or is it downloaded just once and rendered 5 times.
Is it true for .js files also ?( The question of having the same .js file multiple time can be possible due to includes in JSPs ).
Thanks in advance,
regards,
Milan Doshi
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i put off answering this because im not 100% certain, but im pretty sure the browser only downloads one file
 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should be that as long as the Browser can be sure the file is the same (it has the same url) it will read it from cache.
I think this means that if the same image is used on two pages, if it is referenced by a relative url it may not be read from cache.
 
reply
    Bookmark Topic Watch Topic
  • New Topic