Login   Register  
PHP Classes
elePHPant
Icontem

Auto Expires: Set HTTP headers to control browser cache

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 405 This week: 1All time: 5,864 This week: 1,504Up
Version License PHP version Categories  
auto-expires 1.0GNU Lesser General Publ...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: 30
All time rank: 64750 in Brazil Brazil
Week rank: 595 Up42 in Brazil Brazil Up
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:405All time:5,864
 This week:1This week:1,504Up