Skip to content

Commit

Permalink
version constant for cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dignajar committed May 7, 2019
1 parent bf0ea93 commit e123b4d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
define('PATH_ITEMS', PATH_METADATA.'items'.DS);
define('PATH_AUTHORS', PATH_METADATA.'authors'.DS);
define('CHARSET', 'UTF-8');
define('VERSION', '1.0');

// define('DOMAIN', 'http://localhost:7000');
// define('CDN', 'http://localhost:7000/metadata/items/');
Expand Down
6 changes: 3 additions & 3 deletions html/head.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
?>

<!-- CSS files -->
<link href="<?php echo DOMAIN ?>/css/bootstrap-4.3.1.min.css" rel="stylesheet">
<link href="<?php echo DOMAIN ?>/css/bludit.css" rel="stylesheet">
<link href="<?php echo DOMAIN ?>/css/bootstrap-4.3.1.min.css?version=<?php echo VERSION ?>" rel="stylesheet">
<link href="<?php echo DOMAIN ?>/css/bludit.css?version=<?php echo VERSION ?>" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet">
<link href="<?php echo DOMAIN ?>/css/line-awesome/css/line-awesome-font-awesome.min.css" rel="stylesheet">
<link href="<?php echo DOMAIN ?>/css/line-awesome/css/line-awesome-font-awesome.min.css?version=<?php echo VERSION ?>" rel="stylesheet">

<!-- Google hreflang tag -->
<?php foreach ($_hreflang as $hreflang=>$href): ?>
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
<?php include(PATH_HTML.'footer.php'); ?>

<!-- Javascript stuff -->
<script src="<?php echo DOMAIN ?>/js/jquery-3.4.1.min.js"></script>
<script src="<?php echo DOMAIN ?>/js/bootstrap.bundle-4.3.1.min.js"></script>
<script src="<?php echo DOMAIN ?>/js/jquery-3.4.1.min.js?version=<?php echo VERSION ?>"></script>
<script src="<?php echo DOMAIN ?>/js/bootstrap.bundle-4.3.1.min.js?version=<?php echo VERSION ?>"></script>

<script>
$(document).ready(function() {
Expand Down

0 comments on commit e123b4d

Please sign in to comment.