summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-14 20:45:22 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-14 20:45:27 +0100
commita940b8114f99e1a56378815028f4680b2ec1566f (patch)
tree878c64a2125447bc87d1e135ccff974608714abf
parent604a55632c5651a40a828734de313ad1dcf47efa (diff)
Revert "append version to frequently changed resources to avoid caching issues"
Cache Busting via query string is discouraged This reverts commit 604a55632c5651a40a828734de313ad1dcf47efa.
-rw-r--r--index.pl1
-rw-r--r--templates/layouts/default.html.ep8
2 files changed, 4 insertions, 5 deletions
diff --git a/index.pl b/index.pl
index 9584508..39692ae 100644
--- a/index.pl
+++ b/index.pl
@@ -17,7 +17,6 @@ use utf8;
no if $] >= 5.018, warnings => 'experimental::smartmatch';
our $VERSION = qx{git describe --dirty} || '0.05';
-chomp $VERSION;
my %default = (
backend => 'iris',
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 146c3c0..163955b 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -9,16 +9,16 @@
% }
- %= stylesheet "/static/default.css?v=${version}"
+ %= stylesheet '/static/default.css'
%= stylesheet '/static/jquery-ui.min.css'
% my $force_mobile = param('force_mobile') // -1;
% if ($force_mobile == 1 or ($self->browser->mobile and $force_mobile != 0)) {
- %= stylesheet "/static/mobile.css?v=${version}"
+ %= stylesheet '/static/mobile.css'
% }
%if (stash('load_marquee')) {
%= javascript '/static/jquery-1.10.2.min.js'
%= javascript '/static/jquery-ui.min.js'
- %= javascript "/static/dbf.min.js?v=${version}"
+ %= javascript '/static/dbf.min.js'
%= javascript '/static/marquee.min.js'
%= javascript begin
$(function () { $('marquee').marquee() });
@@ -26,7 +26,7 @@
% } else {
%= javascript '/static/jquery-1.10.2.min.js', defer => undef
%= javascript '/static/jquery-ui.min.js', defer => undef
- %= javascript "/static/dbf.min.js?v=${version}", defer => undef
+ %= javascript '/static/dbf.min.js', defer => undef
% }
% if (stash('with_geolocation')) {
%= javascript '/static/geolocation.min.js', defer => undef