8 Replies - 2100 Views - Last Post: 03 June 2008 - 08:30 PM

#1 deepman007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 28-May 08

Stop headers, footer and shared images from reloading

Post icon  Posted 02 June 2008 - 04:25 PM

Hi

Is there a way to stop headers, footers and shared images through out the site from reloading every time a user goes to a different page ?

Thank you
Is This A Good Question/Topic? 0
  • +

Replies To: Stop headers, footer and shared images from reloading

#2 no2pencil  Icon User is offline

  • Original Digital Gansta
  • member icon

Reputation: 4466
  • View blog
  • Posts: 24,916
  • Joined: 10-May 07

Re: Stop headers, footer and shared images from reloading

Posted 02 June 2008 - 04:33 PM

Images should be cached by the users browser, & should only load if they are detected to be different than the last load.
Was This Post Helpful? 0
  • +
  • -

#3 deepman007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 28-May 08

Re: Stop headers, footer and shared images from reloading

Posted 02 June 2008 - 05:08 PM

View Postno2pencil, on 2 Jun, 2008 - 04:33 PM, said:

Images should be cached by the users browser, & should only load if they are detected to be different than the last load.


I don't know why in IE 7 , Vista, my testing site pages reloads every time I go to a new page and the background image are shared.
Was This Post Helpful? 0
  • +
  • -

#4 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 919
  • View blog
  • Posts: 6,443
  • Joined: 07-September 06

Re: Stop headers, footer and shared images from reloading

Posted 02 June 2008 - 07:42 PM

I beleive that most browsers (as no2pencil stated) cache images and other static content that a website/page uses. However each page load requires that the image is rendered again (sadly).

If you really want to avoid this I would reccomment making your site use ajax (or other client side - server side communication) to update only the content areas of your pages.

There are numerous "hacks" out there to make sure that the history buttons still work for ajax based sites.

This post has been edited by BetaWar: 02 June 2008 - 07:42 PM

Was This Post Helpful? 0
  • +
  • -

#5 deepman007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 28-May 08

Re: Stop headers, footer and shared images from reloading

Posted 02 June 2008 - 08:26 PM

View PostBetaWar, on 2 Jun, 2008 - 07:42 PM, said:

I beleive that most browsers (as no2pencil stated) cache images and other static content that a website/page uses. However each page load requires that the image is rendered again (sadly).

If you really want to avoid this I would reccomment making your site use ajax (or other client side - server side communication) to update only the content areas of your pages.

There are numerous "hacks" out there to make sure that the history buttons still work for ajax based sites.


Aren't they suppose to be cached by the broswer? I enable the cache in IE 7 and the result is still not caching the images?
Was This Post Helpful? 0
  • +
  • -

#6 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 919
  • View blog
  • Posts: 6,443
  • Joined: 07-September 06

Re: Stop headers, footer and shared images from reloading

Posted 03 June 2008 - 12:14 AM

Yes, the browser can/will cache images, but each time the page is loaded it is rendered for the browser view. Instead of telling the site to access a file the browser is asking for the image/file off of ram, at which point it has to have enough space freed up to actually load the image anyway; there is still an image file, just different place of storage.
Was This Post Helpful? 0
  • +
  • -

#7 deepman007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 28-May 08

Re: Stop headers, footer and shared images from reloading

Posted 03 June 2008 - 09:02 AM

View PostBetaWar, on 3 Jun, 2008 - 12:14 AM, said:

Yes, the browser can/will cache images, but each time the page is loaded it is rendered for the browser view. Instead of telling the site to access a file the browser is asking for the image/file off of ram, at which point it has to have enough space freed up to actually load the image anyway; there is still an image file, just different place of storage.


So is there a way to make the header and other shared images not to reload in IE or firefox?
Was This Post Helpful? 0
  • +
  • -

#8 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 919
  • View blog
  • Posts: 6,443
  • Joined: 07-September 06

Re: Stop headers, footer and shared images from reloading

Posted 03 June 2008 - 12:12 PM

Probably, I just haven't found anything that works for it yet (though I haven't been looking very hard).
Was This Post Helpful? 0
  • +
  • -

#9 deepman007  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 28-May 08

Re: Stop headers, footer and shared images from reloading

Posted 03 June 2008 - 08:30 PM

View PostBetaWar, on 3 Jun, 2008 - 12:12 PM, said:

Probably, I just haven't found anything that works for it yet (though I haven't been looking very hard).


Right now I can see all the files being cached in IE 7 in the Temporary Internet files folder in Windows XP, but the pages still reloads when I click on the individual buttons. It looks like its been cached , but why they still need to load those images ?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1