The URI of TUHH Docker Registry changed from "docker.rz.tu-harburg.de:5000" to "docker.rz.tu-harburg.de". Please update your gitlab-ci.yml files if you use images from this registry.

Commit 67c65de9 authored by Tobias Zeumer's avatar Tobias Zeumer

Caching: add version numbers or timestamp to included files; #35

parent 4bbf7e16
<?php
// Very few files may change the output
$path = str_replace('index.php', '', __FILE__);
$files = array('index.php', 'js/tubmap.js', 'css/css-responsive-nav.css', 'css/svgWebStyle.css', 'res/tub_floorplan.min.svg');
$filetimes = array();
foreach ($files as $file) $filetimes[$file] = filemtime($path.$file);
// Last modified header
$last_modified = $filetimes;
rsort($last_modified);
$gmt_mtime = gmdate('D, d M Y H:i:s', $last_modified[0]) . ' GMT';
header("Last-Modified: " . $gmt_mtime);
?>
<!doctype html>
<html lang="en">
<!-- http://localhost/_tub/svg/index.html?level=og1&highlight-id=eg_raum_0006 -->
......@@ -7,15 +21,15 @@
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<title lang="de" data-lang-token="page-title">Lesesaalplan - TUB HH</title>
<link href="css/css-responsive-nav.css" rel="stylesheet">
<link href="css/svgWebStyle.css" rel="stylesheet" />
<link rel="stylesheet" href="css/css-responsive-nav.css?<?php echo $filetimes['css/css-responsive-nav.css'] ?>">
<link rel="stylesheet" href="css/svgWebStyle.css?<?php echo $filetimes['css/svgWebStyle.css'] ?>" />
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js" defer></script>
<script type="text/javascript" src="node_modules/jquery-lang-js/js/jquery-lang.js" defer></script>
<script type="text/javascript" src="node_modules/jquery.panzoom/dist/jquery.panzoom.min.js" defer></script>
<script type="text/javascript" src="node_modules/jquery.mousewheel/jquery.mousewheel.js" defer></script>
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js?v3.3.1" defer></script>
<script type="text/javascript" src="node_modules/jquery-lang-js/js/jquery-lang.js?v3.0.3" defer></script>
<script type="text/javascript" src="node_modules/jquery.panzoom/dist/jquery.panzoom.min.js?v3.2.2" defer></script>
<script type="text/javascript" src="node_modules/jquery.mousewheel/jquery.mousewheel.js?v3.1.9" defer></script> <!-- only needed for Firefox -->
<script type="text/javascript" src="js/tubmap.js" defer></script>
<script type="text/javascript" src="js/tubmap.js?<?php echo $filetimes['js/tubmap.js'] ?>" defer></script>
<!-- link rel="stylesheet" href="css/main.css" -->
<!-- link rel="icon" href="images/favicon.png" -->
</head>
......
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