PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2012-07-21 (4 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 457 This week: 1All time: 5,779 This week: 892Up
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 is available for providing paid consulting. Contact Rubens Takiguti Ribeiro .
Classes: 7 packages by
Country: Brazil Brazil
Age: 32
All time rank: 62146 in Brazil Brazil
Week rank: 737 Down62 in Brazil Brazil Down
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:457
This week:1
All time:5,779
This week:892Up