kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject incubator-kudu git commit: Control how content is cached on the Kudu web site
Date Thu, 23 Jun 2016 03:10:36 GMT
Repository: incubator-kudu
Updated Branches:
  refs/heads/gh-pages ee96e7e5c -> 63b66f171


Control how content is cached on the Kudu web site

Change-Id: I08619464d8d458582282044a7db685f8fbbca483
Reviewed-on: http://gerrit.cloudera.org:8080/3462
Reviewed-by: Todd Lipcon <todd@apache.org>
Tested-by: Todd Lipcon <todd@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kudu/commit/63b66f17
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kudu/tree/63b66f17
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kudu/diff/63b66f17

Branch: refs/heads/gh-pages
Commit: 63b66f1711212e042b4b8970b8be2078903feae5
Parents: ee96e7e
Author: Mike Percy <mpercy@apache.org>
Authored: Wed Jun 22 17:36:19 2016 -0700
Committer: Todd Lipcon <todd@apache.org>
Committed: Thu Jun 23 03:09:42 2016 +0000

----------------------------------------------------------------------
 .htaccess | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/63b66f17/.htaccess
----------------------------------------------------------------------
diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..98e65a0
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,18 @@
+# Don't cache content or styles / scripts served by us.
+<FilesMatch "\.(html|js|css)$">
+  FileETag None
+  <IfModule mod_headers.c>
+     Header unset ETag
+     Header set Cache-Control "no-cache"
+  </IfModule>
+</FilesMatch>
+
+# Cache large files (e.g. images) for a short period of time.
+<FilesMatch "\.(gif|jpg|png)$">
+  FileETag None
+  <IfModule mod_headers.c>
+     Header unset ETag
+     # 5 minutes
+     Header set Cache-Control "max-age=300"
+  </IfModule>
+</FilesMatch>


Mime
View raw message