You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by pd...@apache.org on 2019/05/14 18:14:46 UTC
[incubator-openwhisk-website] branch master updated: Add query parm
on master CSS import link to force client refresh (#383)
This is an automated email from the ASF dual-hosted git repository.
pdesai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-website.git
The following commit(s) were added to refs/heads/master by this push:
new b303717 Add query parm on master CSS import link to force client refresh (#383)
b303717 is described below
commit b30371716092bf56c8d363e2194ffbc1ff87ed56
Author: Matt Rutkowski <mr...@us.ibm.com>
AuthorDate: Tue May 14 13:14:41 2019 -0500
Add query parm on master CSS import link to force client refresh (#383)
* Add query parm on master CSS import link to force client refresh
* Add query parm on master CSS import link to force client refresh
* Add query parm on master CSS import link to force client refresh
* Add query parm on master CSS import link to force client refresh
---
README.md | 14 ++++++++++++++
_layouts/default.html | 2 +-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 15ca970..0661916 100644
--- a/README.md
+++ b/README.md
@@ -82,6 +82,20 @@ bundle exec jekyll build
This will build static files to a directory called `_site/` in the project root. This can be used for manual deployment to a static server or with build tools like Jenkins.
+## Updating CSS files
+
+Some browsers will continue to use cached copies of ".css" files even though the styles/content in the files has changed significantly. If you make any changes that affect layout, you SHOULD increment the (artificial) version number on the query parameter on the ```<link>``` within [default.html](_layouts/default.html) which will cause (force) some clients to pull down a new ```main.css``` file (and all the cascading CSS imports as well):
+
+```html
+<link rel="stylesheet" href="{{ site.github.url }}/css/main-v1.css?v=1.12">
+```
+
+for example, update "?v1.12" to "?v1.13".
+
+```html
+<link rel="stylesheet" href="{{ site.github.url }}/css/main-v1.css?v=1.13">
+```
+
## Troubleshooting
If you get an error 'bundle: command not found' attempting to build the site, you may need to manually install the 'bundler' package:
diff --git a/_layouts/default.html b/_layouts/default.html
index ef63f70..374d0f3 100644
--- a/_layouts/default.html
+++ b/_layouts/default.html
@@ -19,7 +19,7 @@
{% include head/favicon.html %}
<title>{{ page_title }}</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i" rel="stylesheet">
- <link rel="stylesheet" href="{{ site.github.url }}/css/main-v1.css">
+ <link rel="stylesheet" href="{{ site.github.url }}/css/main-v1.css?v=1.13">
<!-- Load Index, Menu & collapsible support -->
<script type="text/javascript">
{% include index/index.js %}