mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-22 21:54:15 +02:00
Moved http_epires definitions to the cache config
This commit is contained in:
@@ -147,22 +147,6 @@ return [
|
||||
*/
|
||||
'max_hash_size' => Helpers::env('MAX_HASH_SIZE', 1000000000),
|
||||
|
||||
/**
|
||||
* HTTP expires values.
|
||||
*
|
||||
* Possible values: An array of mime types mapped to their cache duration
|
||||
* as a relative datetime string.
|
||||
*
|
||||
* Default value: [
|
||||
* 'application/zip' => '+1 hour',
|
||||
* 'text/json' => '+1 hour',
|
||||
* ]
|
||||
*/
|
||||
'http_expires' => [
|
||||
'application/zip' => '+1 hour',
|
||||
'text/json' => '+1 hour',
|
||||
],
|
||||
|
||||
/**
|
||||
* Array of icon definitions where the array key is the file extension
|
||||
* (without a preceding dot) and the array value is the desired Font Awesome
|
||||
|
@@ -68,4 +68,20 @@ return [
|
||||
Helpers::env('REDIS_PORT', 6379)
|
||||
);
|
||||
}),
|
||||
|
||||
/**
|
||||
* HTTP expires values to control browser cache durations.
|
||||
*
|
||||
* Possible values: An array of mime types mapped to their cache duration
|
||||
* as a relative datetime string.
|
||||
*
|
||||
* Default value: [
|
||||
* 'application/zip' => '+1 hour',
|
||||
* 'text/json' => '+1 hour',
|
||||
* ]
|
||||
*/
|
||||
'http_expires' => [
|
||||
'application/zip' => '+1 hour',
|
||||
'text/json' => '+1 hour',
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user