You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ho...@apache.org on 2012/04/12 23:41:50 UTC

svn commit: r1325535 - /lucene/cms/trunk/content/.htaccess

Author: hossman
Date: Thu Apr 12 21:41:49 2012
New Revision: 1325535

URL: http://svn.apache.org/viewvc?rev=1325535&view=rev
Log:
give download redir urls a query string to help prevent browser caching

Modified:
    lucene/cms/trunk/content/.htaccess

Modified: lucene/cms/trunk/content/.htaccess
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/content/.htaccess?rev=1325535&r1=1325534&r2=1325535&view=diff
==============================================================================
--- lucene/cms/trunk/content/.htaccess (original)
+++ lucene/cms/trunk/content/.htaccess Thu Apr 12 21:41:49 2012
@@ -3,6 +3,15 @@
 #
 #
 
+### Download URLs
+
+# these are HTML pages so that the browser triggers the google analytics 
+# for download counts, but that means they also get browser cached and what not
+# to try and mitigate wonkyness, w/o having URLs too ugly, append a query 
+# string (only if it doesn't have one -- no circular redirect)
+RedirectMatch (^.*mirrors-.*-redir.html)$ $1?
+
+
 ### Pre-CMS site redirects
 
 # page renames