diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-07-22 12:24:46 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-07-22 12:24:46 -0700 |
commit | cfc1f3eb699cf07efac034d6a76ab19c8cd7e656 (patch) | |
tree | e2b230612262947ac62f40d0a4e3498839d8a0e1 /template/html/common/layout.html | |
parent | 9f6533ece90c6b528dd0af6f1b6dec4a7fa2fa3b (diff) |
Avoid browser caching issues when assets changes
Diffstat (limited to 'template/html/common/layout.html')
-rw-r--r-- | template/html/common/layout.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/template/html/common/layout.html b/template/html/common/layout.html index dbf7079..23464e6 100644 --- a/template/html/common/layout.html +++ b/template/html/common/layout.html @@ -33,10 +33,10 @@ {{ end }} <meta name="theme-color" content="{{ theme_color .theme }}"> - <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" .theme }}"> + <link rel="stylesheet" type="text/css" href="{{ route "stylesheet" "name" .theme }}?{{ .theme_checksum }}"> - <script type="text/javascript" src="{{ route "javascript" "name" "app" }}" defer></script> - <script type="text/javascript" src="{{ route "javascript" "name" "sw" }}" defer id="service-worker-script"></script> + <script type="text/javascript" src="{{ route "javascript" "name" "app" }}?{{ .app_js_checksum }}" defer></script> + <script type="text/javascript" src="{{ route "javascript" "name" "sw" }}?{{ .sw_js_checksum }}" defer id="service-worker-script"></script> </head> <body data-entries-status-url="{{ route "updateEntriesStatus" }}"> {{ if .user }} |