Home » Featured

Preventing Browser Cache in php

9 May 2011 No Comment

Posts and pages
If you dont want that browser dont cache your web page just add the following code in header.


<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
?>


this will set server to not cache web content of this perticuler page.



Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.