mirror of
https://github.com/cydrobolt/polr.git
synced 2024-09-19 23:21:47 +02:00
Add a meta directive to prevent caching of error pages
This commit is contained in:
parent
301ab4c9a4
commit
88a4afea07
@ -1,4 +1,4 @@
|
||||
@extends('layouts.base')
|
||||
@extends('layouts.errors')
|
||||
|
||||
@section('content')
|
||||
<h2>Error</h2>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@extends('layouts.base')
|
||||
@extends('layouts.errors')
|
||||
|
||||
@section('content')
|
||||
<h1>404</h1>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@extends('layouts.base')
|
||||
@extends('layouts.errors')
|
||||
|
||||
@section('content')
|
||||
<h1>500</h1>
|
||||
|
@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
{{-- Leave this for stats --}}
|
||||
<meta name="generator" content="Polr {{env('POLR_VERSION')}}" />
|
||||
@yield('meta')
|
||||
|
||||
{{-- Load Stylesheets --}}
|
||||
@if (env('APP_STYLESHEET'))
|
||||
|
7
resources/views/layouts/errors.blade.php
Normal file
7
resources/views/layouts/errors.blade.php
Normal file
@ -0,0 +1,7 @@
|
||||
@extends('layouts.base')
|
||||
|
||||
@section('meta')
|
||||
<meta http-equiv="Cache-Control" content="no-cache, no-store, max-age=0, must-revalidate" />
|
||||
<meta http-equiv="Pragma" content="no-cache" />
|
||||
<meta name="robots" content="noindex" />
|
||||
@endsection
|
Loading…
Reference in New Issue
Block a user