You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2020/02/28 22:33:05 UTC
[lucene-site] branch master updated: LUCENE-9227: Change HSTS
maxage and caching of static resources to 30 days
This is an automated email from the ASF dual-hosted git repository.
uschindler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-site.git
The following commit(s) were added to refs/heads/master by this push:
new 8d154e6 LUCENE-9227: Change HSTS maxage and caching of static resources to 30 days
8d154e6 is described below
commit 8d154e6a71c96fa543117614dc271d71d30f9d24
Author: Uwe Schindler <us...@apache.org>
AuthorDate: Fri Feb 28 23:32:48 2020 +0100
LUCENE-9227: Change HSTS maxage and caching of static resources to 30 days
---
themes/lucene/static/.htaccess | 4 ++--
themes/lucene/templates/htaccess.template | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/themes/lucene/static/.htaccess b/themes/lucene/static/.htaccess
index 696f21f..4a3ff71 100644
--- a/themes/lucene/static/.htaccess
+++ b/themes/lucene/static/.htaccess
@@ -13,5 +13,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Theme's assets can be cached for 10 days, but only if we use a has as query string; otherwise no header is sent:
-Header add Cache-Control "public, max-age=864000, stale-while-revalidate=1728000" "expr=%{QUERY_STRING} =~ m/^v=/"
+# Theme's assets can be cached for 30 days, but only if we use a has as query string; otherwise no header is sent:
+Header add Cache-Control "public, max-age=2592000, stale-while-revalidate=5184000" "expr=%{QUERY_STRING} =~ m/^v=/"
diff --git a/themes/lucene/templates/htaccess.template b/themes/lucene/templates/htaccess.template
index 5ced3a6..c3014b4 100644
--- a/themes/lucene/templates/htaccess.template
+++ b/themes/lucene/templates/htaccess.template
@@ -17,7 +17,7 @@ RewriteEngine on
RewriteBase /
<If "%{HTTPS} == 'on'">
- Header always set Strict-Transport-Security "max-age=300"
+ Header always set Strict-Transport-Security "max-age=2592000"
</If>
<Else>
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]