This is an automated email from the ASF dual-hosted git repository.
swebb2066 pushed a commit to branch asf-staging
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx-site.git
The following commit(s) were added to refs/heads/asf-staging by this push:
new 29317031 Avoid browser cache issues when the link uses 'latest_stable'
29317031 is described below
commit 2931703180db7a8ecb4d3fe94f31cbf0cf4130fe
Author: Stephen Webb <[email protected]>
AuthorDate: Tue Oct 15 13:30:47 2024 +1100
Avoid browser cache issues when the link uses 'latest_stable'
---
.htaccess | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.htaccess b/.htaccess
index add58293..97cfbabc 100644
--- a/.htaccess
+++ b/.htaccess
@@ -9,10 +9,11 @@
# unless the version (or next_stable/old_stable) is explicitly included
in the path.
# The redirection includes the version to avoid using an earlier
version of files cached by the browser
#
- RewriteRule ^/log4cxx/latest_stable(?:/(?:.+)?)?$ $1 [R=temp,L]
-
RewriteCond %{REQUEST_URI} !^/log4cxx/\d+\.\d+.\d+(?:/(?:.+)?)?$
RewriteCond %{REQUEST_URI} !^/log4cxx/next_stable(?:/(?:.+)?)?$
RewriteCond %{REQUEST_URI} !^/log4cxx/old_stable(?:/(?:.+)?)?$
RewriteRule ^(.*)$ /log4cxx/1.3.0/$1
[R=temp,L]
+
+ RewriteRule ^/log4cxx/latest_stable(?:/(?:.+)?)?$ /log4cxx/1.3.0/$1
[R=temp,L]
+
</IfModule>