-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sha1` is now the default fn for encoding cache keys.
Signed-off-by: Serban Ghita <[email protected]>
- Loading branch information
1 parent
604bb14
commit a06fe2e
Showing
4 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "4.8.08", | ||
"version": "4.8.09", | ||
"headerMatch": { | ||
"HTTP_ACCEPT": { | ||
"matches": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
* @author Nick Ilyin <[email protected]> | ||
* @author: Victor Stanciu <[email protected]> (original author) | ||
* | ||
* @version 4.8.08 | ||
* @version 4.8.09 | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
@@ -241,7 +241,7 @@ class MobileDetect | |
/** | ||
* Stores the version number of the current release. | ||
*/ | ||
protected string $VERSION = '4.8.08'; | ||
protected string $VERSION = '4.8.09'; | ||
|
||
protected array $config = [ | ||
// Auto-initialization on HTTP headers from $_SERVER['HTTP...'] | ||
|
@@ -253,7 +253,8 @@ class MobileDetect | |
// @var int | ||
'maximumUserAgentLength' => 500, | ||
// Function that creates the cache key. e.g. (base64, sha1, custom fn). | ||
'cacheKeyFn' => 'base64_encode', | ||
// Note: used to be base64 but we went with sha1 because of fixed length. | ||
'cacheKeyFn' => 'sha1', | ||
// Cache TTL | ||
// @var null|int|\DateInterval | ||
'cacheTtl' => 86400, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters