How to prevent Caching of webpages in browsers

Often webdevelopers and designers face issue with updating content in their website and find that always the old page is loaded and the updated contents fail to load. This is basically beacause when browsers loads a page for the first time, it stores the image and data in the cache, this inturn results in loading the website from cache next time users browses the website.

If the caching of your website is disabled from your website code, then each time the website is loaded, the browser does not check for the cache and fresh and updated content is loaded.

This could be easily achieved by adding the below simple code in the Meta code of your website, just paste the below code in your html in place of meta tag. The time specified need not be the same, it just needs to be an older date than today !

<meta http-equiv="expires" value="Thu, 19 May 2001 12:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
Hope you enjoyed the simple web design tip!
[ratings]