PHP Cache – Force Refreshing Each Time

When you need to control PHP Cache of a particular page, this is will come in handy. Put this code before outputing any HTML headers.

header("Cache-Control: no-cache, must-revalidate");
header("Pragma: nocache");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");

If you have questions/comments, please add them below.

This entry was posted in Uncategorized. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>