CodeAve.com CodeAve.com - HTML - Headers
ASP
JavaScript
CSS
HTML
·Forms
·Hyperlinks
·Headers
·Images
·Tables
·Text Display
·Miscellaneous
·Contents
·What's New?
Maps
Links
Mail List
Search
Sitemap


 


No Cache
Just about every time you go to a page on the web, your browser, depending on its settings, will make a local copy of that page and its contents on your PC in the directory that your browser targets as its cache. This is so your browser can access local copies of items that repeat on many pages rather than having to continually download the same item over and over again. While periodic cleaning or deleting of the files from the browser cache is a good idea to minimize the amount of stuff on your PC there are times when you may not want the page to cache at all. There are two basic ways to accomplish this and they’re often used in combination to ensure all browsers do not cache the specific page.
View the Output
Text View
Print View
Mail this Link
Download the Code

<html>
<head>
<meta http-equiv=
"Pragma" content="no-cache">
<!-- Pragma content set to no-cache tells the browser not to cache the page
This may or may not work in IE -->

<meta http-equiv="expires" content="0">
<!-- Setting the page to expire at 0 means the page is immediately expired
Any vales less then one will set the page to expire some time in past and
not be cached. This may not work with Navigator -->

<title>CodeAve.com(No Cache)</title>
</head>
<body bgcolor=
"#FFFFFF">

<!-- There are two basic ways to prevent a page from
going into cache. Either one should work in the majority
of browsers. As with most meta tags they should be placed within
the head tags of your document -->

</body>
</html>

 

 

 



ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
Server Variables | Response Objects | Random Events | Miscellaneous
HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
JavaScript: Document Info | Forms | Images | Navigation | Script Writers
CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
Links | Search Engine db |  Privacy Statement |  Advertising Rates |  Email

CodeAve.com is hosted by MyHosting.com
Donate Food Online with a Mouse Click at TheHungerSite.com
Donate Land Online with a Mouse Click at TheRainForestSite.com
© 1999 - 2010 CodeAve.com
All Rights Reserved