PHP Classes

Auto Expires: Set HTTP headers to control browser cache

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 513 All time: 5,743 This week: 53Up
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: 40
All time rank: 63747 in Brazil Brazil
Week rank: 180 Up12 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (10)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:513
This week:0
All time:5,743
This week:53Up