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 (8 months ago) RSS 2.0 feedNot enough user ratingsTotal: 59 This week: 1All time: 10,493 This week: 61Up
Version License PHP version Categories
cachehandler 1.0MIT/X Consortium ...5HTTP, PHP 5, Files and Folders, Cache, P...


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: 8 packages by
Country: India India
Age: 48
All time rank: 3236211 in India India
Week rank: 6 Up1 in India India Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

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

 Version Control Unique User Downloads Download Rankings  
This week:1
All time:10,493
This week:61Up