[tor-commits] [donate/master] Added version query to font and styling files to uncache stylings.

skirtiadi at torproject.org skirtiadi at torproject.org
Wed Nov 6 22:54:22 UTC 2019


commit ad6ba60f8598317611fbf80e91b804cab7090cb4
Author: Stephanie Kirtiadi <skirtiadi at giantrabbit.com>
Date:   Tue Oct 29 14:27:25 2019 -0700

    Added version query to font and styling files to uncache stylings.
    
    Sometimes styling requires hard refresh to appear right from
    browsers where the site is visited before and look broken to the
    visitors. This line of code avoids that.
    
    Issue #43514
---
 templates/ubiquitous.twig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/ubiquitous.twig b/templates/ubiquitous.twig
index aa821ca5..4bed184f 100644
--- a/templates/ubiquitous.twig
+++ b/templates/ubiquitous.twig
@@ -5,8 +5,8 @@
   <title>{% block title %}{% endblock %}</title>
   <meta content="{{ block('title') }}" property="og:title">
   <meta content="width=device-width, initial-scale=1" name="viewport">
-  <link href="/dist/index.css" rel="stylesheet" type="text/css">
-  <link href="/css/fonts.css" rel="stylesheet" type="text/css">
+  <link href="/dist/index.css?v=1" rel="stylesheet" type="text/css">
+  <link href="/css/fonts.css?v=1" rel="stylesheet" type="text/css">
   <link rel="apple-touch-icon-precomposed" sizes="144x144" href="/images/favicon-pdr/apple-touch-icon-144x144.png" />
   <link rel="apple-touch-icon-precomposed" sizes="152x152" href="/images/favicon-pdr/apple-touch-icon-152x152.png" />
   <link rel="icon" type="image/png" href="/images/favicon-pdr/favicon-32x32.png" sizes="32x32" />



More information about the tor-commits mailing list