You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2022/09/16 07:33:45 UTC

[isis] branch master updated: updates docs, adds hint on cache busting application.css

This is an automated email from the ASF dual-hosted git repository.

danhaywood pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 99959463f5 updates docs, adds hint on cache busting application.css
99959463f5 is described below

commit 99959463f56f136f2a5b3312c6b73652ed96f7a6
Author: Dan Haywood <da...@haywood-associates.co.uk>
AuthorDate: Fri Sep 16 08:33:36 2022 +0100

    updates docs, adds hint on cache busting application.css
---
 .../pages/application-specific/application-css.adoc    | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/core/config/src/main/adoc/modules/config/pages/application-specific/application-css.adoc b/core/config/src/main/adoc/modules/config/pages/application-specific/application-css.adoc
index 753ecc8fa5..f5ad03789b 100644
--- a/core/config/src/main/adoc/modules/config/pages/application-specific/application-css.adoc
+++ b/core/config/src/main/adoc/modules/config/pages/application-specific/application-css.adoc
@@ -3,7 +3,7 @@
 
 :Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
 
-All of the layout annotations provide the ability to specify adhoc CSS classes, associated with the corresponding element:
+All the layout annotations provide the ability to specify adhoc CSS classes, associated with the corresponding element:
 
 * xref:refguide:applib:index/annotation/DomainObjectLayout.adoc#cssClass[@DomainObjectLayout#cssClass()]
 * xref:refguide:applib:index/annotation/ActionLayout.adoc#cssClass[@ActionLayout#cssClass()]
@@ -31,3 +31,19 @@ isis:
 ----
 
 This corresponds to the `static/css/application.css` (in `src/main/resources` in the simpleapp's webapp module).
+
+If you change the contents of this file, you may find that your end users' browsers will still cache the old value.
+You can prevent this from occurring ("bust the cache") by setting this Spring Boot config value:
+
+[source,yaml]
+.application.yml
+----
+spring:
+  web:
+    resources:
+      cache:
+        cachecontrol:
+          max-age: 3600
+----
+
+