faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

1 of 3 people (33%) answered Yes
Recently 1 of 3 people (33%) answered Yes

Entry

How can i prevent a php page being cached in browser?

Dec 26th, 2005 07:04
Praveen Kumar Kukkapalli, imtiyaz jariwala,


You need to write the following piece of code in the HTML head tag
<meta http-equiv="pragma" content="nocache">, when executing this will
prevent the browser to load from the cache.