<?php
/**
* Example of usage of class AutoExpires.
* @author Rubens Takiguti Ribeiro <rubs33@gmail.com>
*/
require_once('AutoExpires.class.php');
// Configure to never send 200 response code if user-agent has cache
AutoExpires::setCacheTime(10);
AutoExpires::clearStrategies();
// Start
AutoExpires::start();
// Print the document
echo 'Dynamic content: ' . $_GET['value'];
exit(0);
|