Skip to content
Snippets Groups Projects
Unverified Commit b12ae08f authored by Daniel Naab's avatar Daniel Naab Committed by GitHub
Browse files

Merge pull request #57 from danielnaab/cache-busting-wdfn-60

WDFN-60 - Add version GET param to CSS and JS for cache busting.
parents 0c65c196 80c249f9
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ Application configuration settings.
import logging
import os
from waterdata import __version__ as APP_VERSION
DEBUG = False
......
......@@ -5,9 +5,9 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" type="image/ico" href="{{ config.STATIC_ROOT }}/img/usgs_favicon.ico">
<link rel="stylesheet" href="{{ config.STATIC_ROOT }}/main.css">
<link rel="stylesheet" href="{{ config.STATIC_ROOT }}/main.css?v={{ config.APP_VERSION }}">
<script type="text/javascript">var SERVICE_ROOT = '{{ config.SERVICE_ROOT }}/nwis';</script>
<script async src="{{ config.STATIC_ROOT }}/bundle.js"></script>
<script async src="{{ config.STATIC_ROOT }}/bundle.js?v={{ config.APP_VERSION }}"></script>
{% block page_script %}{% endblock %}
<title>
{% block title %}{% if page_title %}{{ page_title }} - {% endif %}USGS Water Data for the Nation{% endblock %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment