Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Refreshing" question 3

Status
Not open for further replies.

danielh68

Technical User
Jul 31, 2001
431
US
Hi,

Have you ever gone to a site where you kind of watch the site unfold before your eyes: a little piece there, another there, until all the parts are together? And then, when advancing to the next page (which contains all the parts of the former except maybe text) it still displays in the same fashion: piece by piece. You would think, since the images are already cached it would be instanteous (BAM!)....but it's not. Why?

I've visited other sites which are comprable to the site above. The only difference being, the repeated graphics display instaneous from page to page.

I would think a cached graphic would be no different than downloading the whole site and viewing it offline.

Your expertise is appreciated.

Thanks,
Dan
 
You assume the graphics were cached in the first place - this may not have been the case!

Check to see if any meta tags are set up to prevent caching. Also... you can achieve this effect by appending a random number to an img src file (in the same way you might in NN to "cache bust" a page).

Code:
<img src="someimage.jpg?123456" width="50" alt="" />

Ideally these random numbers might be added server-side... but you could do it with javascript document.write commands.

I think you can do it using the http headers themselves - this is obviously server-side.

Here's a suggestion... try viewing the site in different browsers (Mozilla, Opera etc) and see if you get the same effect. If not, it could be specific to the web browser you are using.

Just some thoughts,
Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top