From d54f3008137be0b61297199a78e41f490b5404a6 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Tue, 2 Jun 2020 09:34:04 -0700 Subject: [PATCH] Moved http_epires definitions to the cache config --- app/config/app.php | 16 ---------------- app/config/cache.php | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/config/app.php b/app/config/app.php index d9a5958..c0d25a1 100644 --- a/app/config/app.php +++ b/app/config/app.php @@ -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 diff --git a/app/config/cache.php b/app/config/cache.php index 6cc2f1b..89f43c7 100644 --- a/app/config/cache.php +++ b/app/config/cache.php @@ -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', + ], ];