Skip to main content

Posts

Showing posts from 2015

Stop Browser Caching using Meta Tags

Browsers typically cache the page it has visited to save on bandwidth and load time. This means that when you hit the back button, the browser will use its locally stored page instead of requesting the page again from the server. You may not want browsers to cache pages in several instances such as for online forms where credit card or personal details are viewable. Another instance is when you’re trying to password protect web pages when using scripts such as Simple Authorization Script . To stop browsers from storing a version of your web page in its cache, use the meta tag, Pragma:No-Cache, that is, <meta http-equiv="PRAGMA" content="NO-CACHE"> This meta tag needs to be included between the head tags of your html page. <html> <head> <meta http-equiv="PRAGMA" content="NO-CACHE"> </head> <body> Unfortunately, the Pragma:No-Cache meta tag is not 100% bug free. Work arounds are needed for Inter...