From 24966e3ef7485e05388d65bb4a391bb53ea4376f Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Tue, 15 Oct 2019 18:27:16 +0200 Subject: [PATCH] Invalidate cache for changed video.js assets --- templates/base.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/base.html b/templates/base.html index 4a85f2d..c90ed49 100644 --- a/templates/base.html +++ b/templates/base.html @@ -17,9 +17,9 @@ <link href="{{url_for('static', filename='bootstrap/bootstrap.css')}}" rel="stylesheet"> <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='style.css')}}"> <link rel="stylesheet" href="{{url_for('static', filename='font-awesome/css/all.css')}}"> - <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='videojs/video-js.css')}}"> - <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='videojs/videojs.markers.css')}}"> - <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='videojs/videojs-resolution-switcher.css')}}"> + <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='videojs/video-js.css', v='d042c96')}}"> + <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='videojs/videojs.markers.css', v='d042c96')}}"> + <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='videojs/videojs-resolution-switcher.css', v='d042c96')}}"> {% if ismod() %} <link rel="stylesheet" type="text/css" href="{{url_for('static', filename='bootstrap-multiselect.css')}}"> {% endif %} @@ -32,11 +32,11 @@ <script src="{{url_for('static', filename='bootstrap-multiselect.js')}}"></script> <script src="{{url_for('static', filename='plotly.min.js')}}"></script> {% endif %} - <script src="{{url_for('static', filename='videojs/video.js')}}"></script> - <script src="{{url_for('static', filename='videojs/lang/de.js')}}"></script> - <script src="{{url_for('static', filename='videojs/videojs-resolution-switcher.js')}}"></script> - <script src="{{url_for('static', filename='videojs/videojs.hotkeys.js')}}"></script> - <script src="{{url_for('static', filename='videojs/videojs-markers.js')}}"></script> + <script src="{{url_for('static', filename='videojs/video.js', v='d042c96')}}"></script> + <script src="{{url_for('static', filename='videojs/lang/de.js', v='d042c96')}}"></script> + <script src="{{url_for('static', filename='videojs/videojs-resolution-switcher.js', v='d042c96')}}"></script> + <script src="{{url_for('static', filename='videojs/videojs.hotkeys.js', v='d042c96')}}"></script> + <script src="{{url_for('static', filename='videojs/videojs-markers.js', v='d042c96')}}"></script> {% endblock %} </head> <body> -- GitLab