Forum Moderators: coopster
There wasn't. I looked around myself, and could not find any. But needed something like it myself. 8 weeks later it's written and can be found for download [webmasterworld.com].
Here is a snapshot of the Headline content of the Class:
* Conteg.include
*
* Content-Negotiation for PHP produced web-output
* - Request/Response Headers attempt to be RFC-compliant
* - Compression is load-balanced by default
* - Document-wide multi search/replace available
* - Single array-parameter switches negotiation on/off:
*
* No switches: auto-negotiates Accept-Encoding (compression), User-Agent
* Add:
* +Modified-date: auto-negotiates If-Modified-Since, If-Unmodified-Since
* +Expiry time: auto-sends Expires
* +Etag: auto-negotiates If-None-Match, If-Match, If-Range
* +Ranges: auto-negotiates Range, If-Range
* +Charset: auto-negotiates Accept-Charset
* +Language: auto-negotiates Accept-Language
* +Media-Type auto-negotiates Accept
*
* With the appropriate switches, the routine will auto-send the correct
* +304 Not Modified, 406 Not Acceptable, 412 Precondition Failed, 416 Requested
* +Range Not Satisfiable, 206 Partial content or 200 OK page + full headers.
[edited by: jatar_k at 3:14 pm (utc) on Sep. 22, 2005] made link direct
[edited by: coopster at 2:58 am (utc) on Aug. 6, 2008]