Auto Expires: Set HTTP headers to control browser cache

Recommend this page to a friend!
  Info   View files View files (10)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 500 This week: 1All time: 5,746 This week: 238Up
Version License PHP version Categories
auto-expires 1.0GNU Lesser Genera...5.0HTTP, PHP 5, Cache
Description Author

This class can set HTTP headers to control browser cache.

It takes parameter that determine how the current page or other Web resource should be cached by the browser.

The class sends HTTP response headers using different strategies considering the desired caching parameters and the request headers sent by the browser.

Currently it can HTTP 304 content not modified response status based on desired cache time, on content modification, or a custom strategy defined by a given callback function.

Picture of Rubens Takiguti Ribeiro
Name: Rubens Takiguti Ribeiro <contact>
Classes: 7 packages by
Country: Brazil Brazil
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file AutoExpires.class.php Class Main Class
Accessible without login Plain text file example1.php Example Example of basic usage
Accessible without login Plain text file example2.php Example Example of cache on content modified
Accessible without login Plain text file example3.php Example Example of cache on time expired
Accessible without login Plain text file example4.php Example Example of cache forever
Accessible without login Plain text file test1.php Test Test of example1.php
Accessible without login Plain text file test2.php Test Test of example2.php
Accessible without login Plain text file test3.php Test Test of example3.php
Accessible without login Plain text file test4.php Test Test of example4.php
Accessible without login Plain text file LICENSE.TXT Lic. License

 Version Control Unique User Downloads Download Rankings  
 0%
Total:500
This week:1
All time:5,746
This week:238Up

For more information send a message to info at phpclasses dot org.