You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/07/18 21:02:23 UTC
[16/28] git commit: [#7027] fix key name, don't set quite as long
[#7027] fix key name, don't set quite as long
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/e8b6e665
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/e8b6e665
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/e8b6e665
Branch: refs/heads/db/7523
Commit: e8b6e66566f7cee5a77065669f3e618b7f69c7cb
Parents: 1b61d2a
Author: Dave Brondsema <db...@slashdotmedia.com>
Authored: Thu Jul 10 15:39:12 2014 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Thu Jul 10 15:39:12 2014 +0000
----------------------------------------------------------------------
Allura/development.ini | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/e8b6e665/Allura/development.ini
----------------------------------------------------------------------
diff --git a/Allura/development.ini b/Allura/development.ini
index 8fdc222..3010aa6 100644
--- a/Allura/development.ini
+++ b/Allura/development.ini
@@ -30,7 +30,8 @@ debug = true
smtp_server = localhost
smtp_port = 8826
error_email_from = paste@localhost
-# Used to uniquify references to static resources
+; Used to uniquify references to static resources, can be a timestamp or any unique value
+; This should be updated each time you deploy (or make significant changes, like new tools, new css)
build_key=1276635823
[server:main]
@@ -134,8 +135,8 @@ static.url_base = /nf/%(build_key)s/_static_/
# static.url_base = ://a.fsdn.com/allura/nf/%(build_key)s/_static_/
# cdn.url_base = //a.fsdn.com/allura
-# default expires header for static resources (1 year in future)
-file_expires_header_secs = 31536000
+; Expires header for "static" resources served through allura (e.g. icons, attachments, /nf/tool_icon_css)
+files_expires_header_secs = 1209600 ; 2 weeks
ew.extra_headers = [ ('Access-Control-Allow-Origin', '*') ]