You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2018/01/16 12:47:43 UTC

cayenne-website git commit: Content optimization

Repository: cayenne-website
Updated Branches:
  refs/heads/master 99a67fa25 -> 4db8c2d84


Content optimization


Project: http://git-wip-us.apache.org/repos/asf/cayenne-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-website/commit/4db8c2d8
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-website/tree/4db8c2d8
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-website/diff/4db8c2d8

Branch: refs/heads/master
Commit: 4db8c2d84c718e8af22ec242a1b8ed337fe83394
Parents: 99a67fa
Author: Nikita Timofeev <st...@gmail.com>
Authored: Tue Jan 16 15:47:32 2018 +0300
Committer: Nikita Timofeev <st...@gmail.com>
Committed: Tue Jan 16 15:47:32 2018 +0300

----------------------------------------------------------------------
 src/main/assets/images/cayenne-modeler1.png | Bin 179853 -> 283325 bytes
 src/main/site/static/.htaccess              |  35 ++++++++++++++++++++++-
 2 files changed, 34 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/4db8c2d8/src/main/assets/images/cayenne-modeler1.png
----------------------------------------------------------------------
diff --git a/src/main/assets/images/cayenne-modeler1.png b/src/main/assets/images/cayenne-modeler1.png
index 4f6be57..aa97489 100644
Binary files a/src/main/assets/images/cayenne-modeler1.png and b/src/main/assets/images/cayenne-modeler1.png differ

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/4db8c2d8/src/main/site/static/.htaccess
----------------------------------------------------------------------
diff --git a/src/main/site/static/.htaccess b/src/main/site/static/.htaccess
index c735229..508f6c8 100644
--- a/src/main/site/static/.htaccess
+++ b/src/main/site/static/.htaccess
@@ -42,4 +42,37 @@ RedirectMatch permanent ^/legacy(.*).html$ /
 # Custom 404 error page
 ErrorDocument 404 /404.html
 # Disable .git related content
-RedirectMatch 404 /\.git
\ No newline at end of file
+RedirectMatch 404 /\.git
+
+# One month for most static assets
+<filesMatch ".(css|jpg|jpeg|png|gif|svg|js|ico)$">
+Header set Cache-Control "max-age=2628000, public"
+</filesMatch>
+
+<IfModule mod_deflate.c>
+AddOutputFilterByType DEFLATE text/html
+AddOutputFilterByType DEFLATE text/css
+AddOutputFilterByType DEFLATE text/javascript
+AddOutputFilterByType DEFLATE text/xml
+AddOutputFilterByType DEFLATE text/plain
+AddOutputFilterByType DEFLATE image/x-icon
+AddOutputFilterByType DEFLATE image/svg+xml
+AddOutputFilterByType DEFLATE application/rss+xml
+AddOutputFilterByType DEFLATE application/javascript
+AddOutputFilterByType DEFLATE application/x-javascript
+AddOutputFilterByType DEFLATE application/xml
+AddOutputFilterByType DEFLATE application/xhtml+xml
+AddOutputFilterByType DEFLATE application/x-font
+AddOutputFilterByType DEFLATE application/x-font-truetype
+AddOutputFilterByType DEFLATE application/x-font-ttf
+AddOutputFilterByType DEFLATE application/x-font-otf
+AddOutputFilterByType DEFLATE application/x-font-opentype
+AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
+AddOutputFilterByType DEFLATE font/ttf
+AddOutputFilterByType DEFLATE font/otf
+AddOutputFilterByType DEFLATE font/opentype
+# For Olders Browsers Which Can't Handle Compression
+BrowserMatch ^Mozilla/4 gzip-only-text/html
+BrowserMatch ^Mozilla/4\.0[678] no-gzip
+BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
+</IfModule>
\ No newline at end of file