summaryrefslogtreecommitdiffstats
path: root/application/views/file
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-30 17:10:51 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-30 17:10:51 +0200
commit2a841eb78a8b662dd7b806e6864d963f21b56667 (patch)
tree8cd4f62b85858a5c82ec0a71a4d6980f0cb37990 /application/views/file
parentda4df73ad770c30b2e6c5d2606e11ed7dc291cd0 (diff)
add expire header for css files and append mtime to url
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file')
-rw-r--r--application/views/file/html_header.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index f57884643..499b3adec 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -2,8 +2,8 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php echo $title; ?></title>
- <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste.css" />
- <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste-<?php echo $current_highlight; ?>.css" />
+ <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste.css?<?php echo filemtime(FCPATH."/data/paste.css"); ?>" />
+ <link rel="stylesheet" type="text/css" href="<?php echo base_url(); ?>data/paste-<?php echo $current_highlight; ?>.css?<?php echo filemtime(FCPATH."/data/paste-".$current_highlight.".css"); ?>" />
</head>
<body>
<div class="top_bar">