Commit db56b97c by Siti Aisah

add php header cache control

parent ecbc8ab5
<!DOCTYPE html> <!DOCTYPE html>
<html lang="{{Session::get('selected_language')}}"> <html lang="{{Session::get('selected_language')}}">
<head> <head>
@php
header("Cache-Control: max-age=2592000"); //30days (60sec * 60min * 24hours * 30days)
@endphp
<!-- Google Tag Manager --> <!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
<html lang="{{Session::get('selected_language')}}"> <html lang="{{Session::get('selected_language')}}">
<head> <head>
@yield('meta') @yield('meta')
@php
header("Cache-Control: max-age=2592000"); //30days (60sec * 60min * 24hours * 30days)
@endphp
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="language" content="{{Session::get('selected_language')}}"> <meta name="language" content="{{Session::get('selected_language')}}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment