PHP Classes

PHP Browser Cache Handler: Issue HTTP not modified response for cached files

Recommend this page to a friend!
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-09-12 (2 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 54 All time: 10,494 This week: 171Up
Version License PHP version Categories
cachehandler 1.0MIT/X Consortium ...5HTTP, PHP 5, Files and Folders, Cache, P...
Description 

Author

This class can issue HTTP, not modified response for cached files.

It can check the current HTTP request to verify if it contains headers like If-None-Match or If-Modified-Since to determine if it will serve a given file or issue a 304 Not Modified HTTP status response.

The class can serve a given file as a response when it verifies that the browser does not have an up-to-date version of the specified file.

The file is served with a given Etag header value to let the browser determine the specific file version the server is sending.

Picture of Ramesh Narayan Jangid
  Performance   Level  
Name: Ramesh Narayan Jangid <contact>
Classes: 6 packages by
Country: India India
Age: 48
All time rank: 3432227 in India India
Week rank: 28 Up3 in India India Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file CacheHandler.php Class Cache Handler

 Version Control Unique User Downloads Download Rankings  
 0%
Total:54
This week:0
All time:10,494
This week:171Up