The constructor
Last updated
Was this helpful?
Last updated
Was this helpful?
The constructor can receive an optional cache class compatible with
The constructor can also receive optional $config
variables as follows:
autoInitOfHttpHeaders
true
Auto-initialization on HTTP headers from $_SERVER['HTTP...']
. Disable this if you're going for performance and you want to manually set the User-Agent via $detect->setUserAgent(...)
maximumUserAgentLength
500
Maximum HTTP User-Agent value allowed.
cacheKeyFn
sha1
Method of encoding the cache key.
cacheTtl
86400
Default expiration date for the default Cache
class implementation.