Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace BookStack\Http\Middleware; use Closure; use Symfony\Component\HttpFounda..

Decoded Output download

<?php

namespace BookStack\Http\Middleware;

use Closure;
use Symfony\Component\HttpFoundation\Response;

class PreventResponseCaching
{
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        /** @var Response $response */
        $response = $next($request);

        $response->headers->set('Cache-Control', 'no-cache, no-store, private');
        $response->headers->set('Expires', 'Sun, 12 Jul 2015 19:01:00 GMT');

        return $response;
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace BookStack\Http\Middleware;

use Closure;
use Symfony\Component\HttpFoundation\Response;

class PreventResponseCaching
{
    /**
     * Handle an incoming request.
     *
     * @param \Illuminate\Http\Request $request
     * @param \Closure                 $next
     *
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        /** @var Response $response */
        $response = $next($request);

        $response->headers->set('Cache-Control', 'no-cache, no-store, private');
        $response->headers->set('Expires', 'Sun, 12 Jul 2015 19:01:00 GMT');

        return $response;
    }
}

Function Calls

None

Variables

None

Stats

MD5 721096aa7ccf500e881ab599b8ce27c0
Eval Count 0
Decode Time 85 ms