mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
An updated set of source files and initialization was provided by streamline to address issues observed during initial testing. These files have been updated in order to generate a new set of app images.
25 lines
605 B
PHP
Executable File
25 lines
605 B
PHP
Executable File
<?php
|
|
|
|
namespace Streamline\Http\Middleware;
|
|
|
|
use Closure;
|
|
|
|
class DisableBackButton {
|
|
|
|
/**
|
|
* Handle an incoming request.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle($request, Closure $next) {
|
|
$response = $next($request);
|
|
$response->headers->set('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate');
|
|
$response->headers->set('Pragma', 'no-cache');
|
|
$response->headers->set('Expires', 'Sun, 02 Jan 1990 00:00:00 GMT');
|
|
return $response;
|
|
}
|
|
|
|
}
|