1
0
mirror of https://github.com/cydrobolt/polr.git synced 2024-09-19 15:11:40 +02:00

Add a meta directive to prevent caching of error pages

This commit is contained in:
Chaoyi Zha 2017-02-01 16:55:29 -05:00
parent 301ab4c9a4
commit 88a4afea07
5 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
@extends('layouts.base')
@extends('layouts.errors')
@section('content')
<h2>Error</h2>

View File

@ -1,4 +1,4 @@
@extends('layouts.base')
@extends('layouts.errors')
@section('content')
<h1>404</h1>

View File

@ -1,4 +1,4 @@
@extends('layouts.base')
@extends('layouts.errors')
@section('content')
<h1>500</h1>

View File

@ -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'))

View 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