Skip to content

Commit

Permalink
Add cache header for results.show
Browse files Browse the repository at this point in the history
Part of #18
  • Loading branch information
yukidaruma committed Aug 13, 2020
1 parent 5dccf4c commit 11e2c4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 11e2c4a

Please sign in to comment.