Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function handle($request, Closure $next, int $cacheTimeInMinutes = null) |
||
10 | { |
||
11 | $response = $next($request); |
||
12 | |||
13 | return $response->withHeaders([ |
||
14 | 'X-Cacheable' => '1', |
||
15 | 'Cache-Control' => 'public, max-age='. 60 * ($cacheTimeInMinutes ?? config('laravel-varnish.cache_time_in_minutes')), |
||
16 | ]); |
||
17 | } |
||
18 | } |
||
19 |