Moved http_epires definitions to the cache config

This commit is contained in:
Chris Kankiewicz
2020-06-02 09:34:04 -07:00
parent af0ca83282
commit d54f300813
2 changed files with 16 additions and 16 deletions

View File

@@ -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

View File

@@ -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',
],
];