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 5b58c38c Avoid browser cache issues when the link uses 'latest_stable'
5b58c38c is described below
commit 5b58c38ca0645cd7e99e4f638e9c976044c9bfd0
Author: Stephen Webb <[email protected]>
AuthorDate: Tue Oct 15 13:01:08 2024 +1100
Avoid browser cache issues when the link uses 'latest_stable'
---
.htaccess | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/.htaccess b/.htaccess
index 46037969..71a50027 100644
--- a/.htaccess
+++ b/.htaccess
@@ -6,11 +6,12 @@
RewriteRule ^(.*)$ https://%{SERVER_NAME}/log4cxx/$1
[R=permanent,L]
# The following is used to redirect requests to the most recently
released version
- # unless the version (or latest_stable/old_stable) is explicitly
included in the path.
- # The redirection includes the version to avoid using an earlier
version of the file cached by the browser
+ # 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(?:/(?:.+)?)?$ /log4cxx/1.3.0/$1
[R=temp,L]
+
RewriteCond %{REQUEST_URI} !^/log4cxx/\d+\.\d+.\d+(?:/(?:.+)?)?$
- RewriteCond %{REQUEST_URI} !^/log4cxx/latest_stable(?:/(?:.+)?)?$
RewriteCond %{REQUEST_URI} !^/log4cxx/next_stable(?:/(?:.+)?)?$
RewriteCond %{REQUEST_URI} !^/log4cxx/old_stable(?:/(?:.+)?)?$
RewriteRule ^(.*)$ /log4cxx/1.3.0/$1
[R=temp,L]