View Full Version : page expire how?
kab_184
08-13-2002, 10:40 AM
i wann know how can i make my page expire as soon as the browser is close??i heard cookies are used for this...is there any other method ??and if someone know the right formula to expire the page please pass it on to me in what ever easy way u can
duniyadnd
08-13-2002, 11:38 AM
what do you mean by making your page "expire". :confused:
Once you close the browser window, you should lose all information, esp. if you not using cookies already. The only information that would be saved are images and some html pages in your Temporary Internet Files directory or equivalent, if you using a Windows OS.
Duniyadnd
kab_184
08-13-2002, 04:40 PM
what i meant was ....>>pages those get stored in the ISP cache usaully are returned to end user although i have changed the contents on my website ....so how can i expire them inthe ISP cache .....???
Try using these in your HEAD area:
<meta http-equiv="Expires" content="Thu, 31 Dec 1997 01:01:01 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
Although they are not guaranteed to work, most are disused by most browsers (specifically pragma), and virtually nothing will stop horrible wannabe so-called ISPs (such as AOL) from caching everything at their 10year old proxies. ALthough you can append a dynamic/never repeating number to urls/images in order to make the cache think this is a new page (since the numbers will always be different). A better method is to send expires, last updated and cache control headers the real way, through true HTTP Headers (which are different the the HEAD area of a html page). You can do this with any server-side language and/or configure your webserver itself to do this as well.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.