Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: HTML
Expertise: Intermediate
Mar 16, 2004

Eliminate Data Caching from Your Browser

There are times you don't want your output to be cached on browsers. For instance, when a user is viewing their account balance, you want the data to be retrieved from the server and displayed.

There is a way to inform the browser that it should cache the information so that it requests the information from the server each time, then displays it.

Include the following code segment between the <HEAD> </HEAD> tags in the page:

 
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
This ensures that the data is not cached and, hence, that fresh data is always retrieved from the server before serving the client's request.
Sridhar MS
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap