Template: Integrate compression on included .js and .css files, fix custom_css template variable.

This commit is contained in:
Nate
2020-03-19 21:11:53 -06:00
parent 8b2b284041
commit 92719e0399
15 changed files with 148 additions and 21 deletions

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap-colorpicker.min.css';
?>

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap-tempusdominus.min.css';
?>

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/css; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap.min.css';
?>

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/javascript; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap-colorpicker.min.js';
?>

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/javascript; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap-pwstrength.min.js';
?>

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/javascript; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap-tempusdominus.min.js';
?>

View File

@@ -0,0 +1,10 @@
<?php
ob_start('ob_gzhandler');
header('Content-type: text/javascript; charset: UTF-8');
header('Cache-Control: must-revalidate');
header('Expires: '.gmdate('D, d M Y H:i:s',time()+3600).' GMT');
include_once 'bootstrap.min.js';
?>