From 11e2c4a9c6f6f4f78a85cf097168c2cc1399fb1e Mon Sep 17 00:00:00 2001 From: yukidaruma Date: Thu, 13 Aug 2020 21:11:28 +0900 Subject: [PATCH] Add cache header for `results.show` Part of #18 --- routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index da37571..16e631a 100644 --- a/routes/api.php +++ b/routes/api.php @@ -56,7 +56,7 @@ // Results routes Route::get('/results', 'SalmonResultController@index')->name('results'); -Route::get('/results/{salmon_id}', 'SalmonResultController@show')->name('results.show'); +Route::get('/results/{salmon_id}', 'SalmonResultController@show')->name('results.show')->middleware('cache.headers:public;max_age=86400'); // Players routes Route::get('/players/{screen_name}', function (Request $request, string $screenNameWithAt) {