Skip to content

Commit 80c5c21

Browse files
committed
feat(cache middleware): added x-vapor-base64-encode response header
1 parent 08b40a0 commit 80c5c21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎app/Http/Middleware/CacheMiddleware.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function handle(Request $request, Closure $next)
2020
$key = md5($request->fullUrl());
2121
if (! Cache::has($key)) {
2222
$value = $next($request)->withHeaders([
23+
'X-Vapor-Base64-Encode' => 'True',
2324
'Cache-Control' => 'max-age=2592000, public',
2425
]);
2526
Cache::put($key, $value);

0 commit comments

Comments
 (0)