Main
Home
Contact Staff
Request
Graphics Directory

Site
Updates Archive
Previous Requests
History
FAQ
Terms
Previous Layouts
Staff
Affiliates
Credits
Link Back

Graphics
Avatars
Banners
MS Paint
Posters
Textures
Transparencies
Wallpapers
Miscellaneous

Drifting Designs Tutorials > > Coding > > HTML > > Disabling Cache




Disable Cache



For starters, let me explain what cache is. Everytime you view a webpage, your browser stores it in its memory so that everytime you return to the website, it can load the source code as it did the previous time, and the page will load much faster than how it would normally take without cache. Helpful? Sometimes, sometimes not. The problem with cache is that it displays a webpage pretty much exactly as you saw it the last time you viewed the page. Sure, the page will load faster for you. But . . . what about if the webmaster updated something on the page (got a new layout or whatever)? Because of your cache, you wouldn't be able to see the change right away until your cache dies down (it's recycled every 20 days on default), or you manually clear the cache yourself (Tools > > Internet Options > > General > > Clear History). That's a lot of work for your visitors to undergo to see every change you made to your website. However, there's a certain code you can enter into your page so that everytime the page loads, the viewer's cache for that page is cleared, and the viewer can see all the recent changes you made to that page. The code is below (Enter it into the HEAD part of your page):




That's it! Now everytime the page loads, the viewer's cache for that page is disabled, and s/he can view all the changes you made to the page as soon as you upload them.

Note: If you're using free webhosts, such as Geocities or Freewebs, you'll most likely not need this code because I think pages uploaded on those servers automatically have cache-disablers. However, if you have your own domain or are being privately hosted by one, you'll most likely need to use this code. I use it for all my pages.
Layouts
Div Layouts
Frames Layouts
Pop-Up Layouts
Table Layouts

Neopets
Shop Signs
Guild Layouts
Full Page Layouts
Miscellanous

Tutorials
Coding
Graphics
Other

Hosted
Hosted by: